Skip to content

A template repository to create a DiscordJS bot

Notifications You must be signed in to change notification settings

UCCNetsoc/discordjs-bot-template

Repository files navigation

DiscordJS Bot Template

Using DiscordJS v13

Installation / Setup

  • Required dependencies:

  • Click "Use this template" on Github or Clone/Fork this repository and use your own repo.

  • Copy config.json.template to config.json.

  • Go to https://discord.com/developers/applications.

    • Click "New Application".

    • Go to "Bot".

    • Click "Add Bot".

    • Click "Copy" to get your bot token, put this in config.json.

    • Add "bot" and "applications.commands" scopes in OAuth2 section, and copy the link.

    • Paste the link into a browser tab, and invite the bot to a testing server you have set up.

    • Copy the Client ID from the OAuth section in the portal, paste this to client_id option in config.json.

    • Right click on your test guild icon in discord, click Copy ID, add this to config.json as guild_id.

  • In a terminal, run npm install in the directory to install dependencies.

  • Run npm run dev

Things to note

DO NOT UPLOAD OR SEND YOUR BOT TOKEN ANYWHERE

About

A template repository to create a DiscordJS bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published