Jon Deaves 62170014d2 feat(db): add mongodb connection
additionally implements command to add greetings for test
2020-08-13 23:17:57 +01:00
2020-08-12 11:58:36 +01:00
2020-08-13 23:17:57 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-13 23:17:57 +01:00
2020-08-12 11:47:58 +01:00
2020-08-13 23:17:57 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-04 14:08:26 +01:00
2020-08-13 23:17:57 +01:00

Venom Discord Bot

This is the Discord bot for Creation Asylum.

Development

  • Requires NodeJS, recommend at least the latest LTS version.
  • Run yarn or npm install to install dependencies

Environment Variables

At a minimum you need to provide the Discord bots Token, which can be found on the Bot tab of a Discord application. See table below for possible values.

key description example
BOT_TRIGGER Prefix of message to let bot know you are speaking to it
DISCORD_BOT_TOKEN Discord bots Token
NODE_ENV What environment the bot is running in production, development or test
LOG_LEVEL What level of logs should be displayed in console error, warn, info, verbose, debug or silly
MONGODB_URI Full connection string for MongoDB database, include db_name if user is scoped to single database mongodb://user:password@localhost:27017/venom_db
MONGODB_DB_NAME The name of the database to use for this project venom_db

Bot commands

To add a command you create a Typescript file in src/bot/commands/[filename].ts and ensure it implements the \src/bot/commands/ICommand.tsinterface. You can see the other files in this directory for implementation examples. Also ensure you export this file insrc/bot/commands/index.ts`.

Description
A bot for the Creation Asylum Discord
Readme MIT 444 KiB
Languages
TypeScript 96.6%
JavaScript 1.7%
Shell 1%
Dockerfile 0.7%