DJ Discord Bot
Practice Course outline for Udemy
Part 1: Register Discord Bot
Steps:
- Install the Discord app
- Create a Server for practice
- Submit an application for a bot on Discord
- Under Redirects so you can register the app to test it locally
- Enable scopes:
- bot
- for oauth2 bots, this puts the bot in the user's selected guild by default
- applications.commands
- allows your app to add commands to a guild - included by default with the bot scope
- Enable permissions:
Information about OAuth2, scopes, and permissions
- Install Dotenv and DiscordJS
npm install dotenv
npm install discord.js
Loads the environmental variables from the .env file
Discord.js is a powerful Node.js module that allows you to easily interact with the Discord API. Needs NodeJS v18 and higher.