diabot v0.6.9
Diabot
Diabetes Discord Bot
Add the bot to your server
Click here to authorize this bot for your Discord server.
If you like, you can also add the development version by authorizing it here.
Type -diabot --help
for a list of commands.
type -diabot <command> --help
for help on a specific command.
Run the bot by yourself using Heroku
Make sure to run the queries/create.sql
queries on your database.
Run the bot elsewhere
Clone this repository, and run:
$ npm install
Run the queries/create.sql
queries on your database.
Usage
First, make sure to have a user bot for Discord, if you don't you can make one here.
Save the app bot user token in either an environment variable named TOKEN
, or in the config.js
file.
The bot also requires a MySQL database and Rabbit MQ instance. It uses the following environment variables to login:
DIABOT_DB_HOST
: Database hostDIABOT_DB_USER
: Database usernameDIABOT_DB_PASS
: Database passwordDIABOT_DB_NAME
: Database nameDIABOT_DB_LIMIT
: Database connection limitDIABOT_QUEUE_USER
: rabbitMQ usernameDIABOT_QUEUE_PASS
: rabbitMQ passwordDIABOT_QUEUE_HOST
: rabbitMQ hostDIABOT_QUEUE_NAME
: rabbitMQ queue nameDIABOT_QUEUE_VHOST
: rabbitMQ vhostDIABOT_QUEUE_PORT
: rabbitMQ portDIABOT_QUEUE_TIMEOUT
: rabbitMQ connection timeoutDIABOT_QUEUE_HEARTBEAT
: rabbitMQ heartbeatDIABOT_QUEUE_EXCHANGE
: rabbitMQ exchange name
The bot requires one listener (for queueing messages) and as many workers as you believe are necessary. Workers will take messages from the queue and process them.
Starting your listener
$ npm run listener
Starting your worker(s)
$ npm run worker
License
GPL-3.0+ © Cas Eliens
The avatar image for diabot was created by faythe