A student-led, fire-from-the-hip attempt at making a Discord bot.
There are a couple of ways you can contribute to this Raikes School tradition. You can submit tickets for features or behavior you would like to see in Mega Bot. Additionally, you can contribute directly by developing a new feature.
There are a few steps to begin development:
- Clone the repository locally.
- Contact the repository owner to join the development sandbox Discord guild.
- Contact the repository owner and request a config file. This config file provides information like MongoDB connection strings and Discord bot tokens.
- Check out the local development guide.
This section assumes you have completed the Guide to Contributing.
In this section, you'll learn how to perform local development on the mega-bot
repository. There are a few resources available to aid with local development, such as the development sandbox Discord guild and a standalone testing bot called (DEV) Mega Bot
.
To run the development version of Mega Bot, (DEV) Mega Bot
, run the following command.
npm run dev
After doing so, check the following. An example of typical console output is provided below.
- The linter runs successfully.
- The local application connects to
(DEV) Mega Bot
in the sandbox guild. (DEV) Mega Bot
responds to commands in the sandbox guild.- The behavior of
(DEV) Mega Bot
responds to changes you've made locally.
Typical Console Output
If others happen to be testing (DEV) Mega Bot
at the same time, you will see multiple responses to each command. An example of multiple responses is provided below. This occurs because there is only one (DEV) Mega Bot
, ergo only one connection string. Since multiple people can log in to the bot at the same time, it will respond once for each valid log in.
Multiple Bot Responses in the Sandbox Guild