A Discord bot that retrieves a list of coding contests from an API and displays them in Discord channels using slash commands.
If you're interested, please check out the Code Alert Alexa Skill, with which you can access the same functionality from your Alexa device.
To use the bot, invite it to your Discord server using this link:
The bot supports the following slash commands:
Lists all contests in the current week (Monday to Sunday).
Lists all the contests within 24 hours.
Lists all the contests within this week.
To host and run the bot yourself, you'll need the following:
- Node.js
- A Discord account
- A Discord bot and its token. Follow the Discord.js guide to learn how to create a bot and obtain its token.
To host the bot yourself, follow these steps:
-
Download the latest release of the bot from the GitHub repository.
-
Extract the contents of the release archive to a directory on your machine.
-
Create a
config.json
file in the root directory of the project and replaceYOUR_TOKEN
with your Discord bot token andBOT_ID
with your Discord bot's client ID:
{
"token": "YOUR_TOKEN",
"clientId": "BOT_ID"
}
- Install the required dependencies.
npm install
- Start the bot.
node index.js
This project is licensed under the MIT License - see the LICENSE file for details.