A Discord bot to help schedule events.
This bot will help you schedule an event in Discord and allow users to react to a message to be notified in DM one hour prior to the event.
- Open the Discord developer portal
- Create a new application.
- Click on the "Bot" tab on the left and then "Add Bot" on the right.
- Copy your bot's token and save it for later.
- Make sure you enable
Message Content Intent
. - In the "OAuth2" tab on the left, go to the URL Generator, add the "bot" and "applications.commands" scopes, and invite the bot to your server.
- Install Node.js 16.9.0 or newer.
- Download this repository using git.
git clone https://github.com/zevinal/schedule-bot.git
- Open a terminal in the
schedule-bot
folder.# NPM install non-development packages npm ci # Create the config. npm run build
- A new file will be created in the project folder called
config.json
. Take the bot token you saved earlier and paste it in to the token field. Paste your bot's client id in the client id field. You can get this from the "General Information" tab underApplication ID
. - Now we need to register the slash commands, you can remove any of the commands you want from /commands/ if necessary.
# Registering the slash commands npm run register # Start the bot and create an event! npm start