This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

diabot

0.6.9 • Public • Published

Diabot NPM version Build Status Coverage percentage Codacy Grade Donate

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

Deploy on 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 host
  • DIABOT_DB_USER : Database username
  • DIABOT_DB_PASS: Database password
  • DIABOT_DB_NAME: Database name
  • DIABOT_DB_LIMIT: Database connection limit
  • DIABOT_QUEUE_USER: rabbitMQ username
  • DIABOT_QUEUE_PASS: rabbitMQ password
  • DIABOT_QUEUE_HOST: rabbitMQ host
  • DIABOT_QUEUE_NAME: rabbitMQ queue name
  • DIABOT_QUEUE_VHOST: rabbitMQ vhost
  • DIABOT_QUEUE_PORT: rabbitMQ port
  • DIABOT_QUEUE_TIMEOUT: rabbitMQ connection timeout
  • DIABOT_QUEUE_HEARTBEAT: rabbitMQ heartbeat
  • DIABOT_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

Package Sidebar

Install

npm i diabot

Weekly Downloads

2

Version

0.6.9

License

GPL-3.0+

Last publish

Collaborators

  • cascer1