A ready made template for using a Discord bot with advanced commands/events handlers already created.
PLEASE NOTE THIS DISCORD BOT METHOD IS NOW OLD. SLASH COMMANDS ARE NOW PREFERRED.
This template was made using CodeLyon's method of advanced commands/events handlers.
- Install the 'Current' Node.js from https://nodejs.org
- Clone/fork this repo using your preferred method e.g.
git clone https://github.com/ThatSameer/discord-bot-template.git
NEW: You can now click the big green 'Use this template' button at the top of this repo!
- Install the Discord node module by running this within the projects folder
npm install discord.js
Note: Remember to switch on both Privileged Gateway Intents for your Discord bot in your Discord Developer Portal
- In the index.js file, assign your Discord bot token to 'token' using your preferred method. It is generally not recommended to store your token in plain text. Treat your token like your password!
client.login(token)
- The main area of interest will be the commands and events folders. Some examples are already included
- Recommended reading
- Recommended videos
tbc
tbc
tbc
tbc