Go to file
Charles Zhang 90c51a9e95 Merge branch 'docker' into 'master'
Dockerized local development environment

See merge request csc/discord-bot!8
2021-06-03 23:50:48 +00:00
.vscode Dockerized local development environment 2021-06-03 23:50:47 +00:00
db Dockerized local development environment 2021-06-03 23:50:47 +00:00
logs Dockerized local development environment 2021-06-03 23:50:47 +00:00
src Dockerized local development environment 2021-06-03 23:50:47 +00:00
.dockerignore Dockerized local development environment 2021-06-03 23:50:47 +00:00
.eslintrc Dockerized local development environment 2021-06-03 23:50:47 +00:00
.gitattributes add database function with openDB 2021-05-25 00:53:37 +00:00
.gitignore Dockerized local development environment 2021-06-03 23:50:47 +00:00
.prettierrc Dockerized local development environment 2021-06-03 23:50:47 +00:00
Dockerfile Dockerized local development environment 2021-06-03 23:50:47 +00:00
README.md Dockerized local development environment 2021-06-03 23:50:47 +00:00
docker-compose.yml Dockerized local development environment 2021-06-03 23:50:47 +00:00
index.ts Dockerized local development environment 2021-06-03 23:50:47 +00:00
package.json Dockerized local development environment 2021-06-03 23:50:47 +00:00
tsconfig.json Dockerized local development environment 2021-06-03 23:50:47 +00:00
yarn.lock using cross-env to set env vars cross platform 2021-05-24 20:56:52 -04:00

README.md

Codey Bot

Required environment variables

  • BOT_TOKEN: the token found in the bot user account.
  • NOTIF_CHANNEL_ID: the ID of the channel the bot will send system notifications to.

Prerequisites

Running the bot locally

  1. Build docker image: yarn image:build
  2. Start container in detached mode: yarn start
  3. View and follow console output: yarn logs

Other usage

  • Stop the container: yarn stop
  • Stop and remove the container: yarn clean
  • Restart the container: yarn restart
  • Fresh build and restart: yarn image:build && yarn clean && yarn start