Skip to content

lucasromerodb/discord-bot-starter-template-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord bot starter template (NodeJS)

Pre-requisites

Quick start

Go to Discord Apps Dashboard to create your new application or bot: https://discord.com/developers/applications/

  1. Create a New Application
  2. Setup an app name and click on Create
  3. Go to Bot settings and add a new one (here you can find the bot token)
  4. Go to OAuth2 set the stope to bot
  5. Set the bot permissions to Administrator
  6. Copy the scope invitation link and paste on a new tab. Then invite the bot to your server

Before starting the project

Run the following command:

npm init # to setup your package
npm i discord.js # to install a Discord package and interact with their API
cp config.mock.json config.json # to setup the your private bot token

Then update the BOT_TOKEN with your real one in the config.js file.

{
  "BOT_TOKEN": "YOUR_BOT_TOKEN_HERE"
}

You can reveal your private bot token in the Bot dashboard settings

Run your project

node index.js

Now you can see your bot online on your Discord server


Discord JS

Releases

No releases published

Packages

No packages published