2.1.0 • Published 3 years ago

qnalert v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

qnalert

Utility to alert users when a VEX Q&A has been answered. Subscribe to Q&A notifications by joining the Unofficial VEX Nexus discord server.

Setup

env

In order to run qnalert, you need a .env file that contains the following

  • DISCORD_BOT_TOKEN: A discord bot token, which you can obtain by making a new application here
  • FIREBASE_AUTH: A firebase service account key.
  • PROD: Should be true or false depending on whether you want to use a development config or a production config.

Configuration

Development and production configs go in devconfig.json and config.json respectively (at the root of the project). Each given category should have a Discord channel ID. See the config in this project for more details.

Running

Node

Place the .env file in the root directory of the project.

npm i
npm run start

Docker

docker run --env-file /path/to/.env battlesquid0101/qa