A bot for managing FOSS GECT's Discord server, and for carrying out tasks that we are too lazy to do on our own. 😜
You can interact with the bot by typing in supported bot commands as messages in the server. Bot commands have to be prefixed with the bot command prefix for the bot to recognize it as a command. The ampersand symbol (&) is the prefix currently in use.
As of now, the bot only responds to messages sent in a specific channel, set aside specifically for bot interactions. This behavior maybe changed in the future.
The help command can be used to list all commands currently supported by the bot:
&helpThe help command can also be used to understand the usage or purpose of individual commands. For example, here we use the help command to see its own description and usage:
&help help
// Usage: &help [command-name]Visit our Contributing Guide for more information.
-
Clone the repo.
git clone https://github.com/fossgect/fossbot cd fossbot -
Copy the
config.jsonfile from/templatesinto the root directory of the repo.cp /templates/config.json config.json
-
Fill in the
config.jsonfile.PREFIXrefers to the command prefix that is to be used by the bot. FOSS GECT's deployment currently uses '&', however, you are free to change it for your own use.BOT_TOKENis an API token generated using your Discord account. See our Contributing Guide for more information on how to obtain this token.BOT_CHANNELis the name of the channel on which the bot should listen for incoming messages.ORG_NAMEis the name of the GitHub organization involved. This is a configuration associated with theinviteandremovecommands.ORG_TOKENis the Personal Access Token of the GitHub organization. This is a configuration associated with theinviteandremovecommands.
-
Install the dependencies:
npm install --production=false
-
Run the bot using Nodemon (for auto-reload):
npm run bot