A simple starter template for creating a Discord bot using Discord.js v13.
Currently this does not support slash commands, but will be updated with support later on.
Install the latest version of Node from here. This bot requires Node v16 or above to function.
Create a Discord bot here and have the bot token ready.
You can find the bot token under the "Bot" page for your selected bot. Click "Copy" to copy the bot token to clipboard.
- Clone this repository:
git clone https://github.com/RogueArt/discord-bot-template.git
- Install node modules:
cd discord-bot-template
npm install
- Configure the bot:
- Make a copy of
.env.example
and call it.env
- Replace the value for
BOT_TOKEN
with your Discord bot's token - Change the prefix to any prefix you want to use for your commands
- Make a copy of
To run the bot, simply do npm run start
.
To run it in development mode, use npm run dev
to live reload the bot as the source code changes.
Feel free to fork this repo and change the code however you like! Make a pull request and I'll review it as soon as I can!