Go to file
Charles Zhang 1edc459b8d keep db and logs dirs for volume mounting 2021-05-30 13:00:52 -04:00
.vscode dockerized local dev env 2021-05-30 12:52:41 -04:00
db keep db and logs dirs for volume mounting 2021-05-30 13:00:52 -04:00
logs keep db and logs dirs for volume mounting 2021-05-30 13:00:52 -04:00
src dockerized local dev env 2021-05-30 12:52:41 -04:00
.dockerignore dockerized local dev env 2021-05-30 12:52:41 -04:00
.eslintrc dockerized local dev env 2021-05-30 12:52:41 -04:00
.gitattributes add database function with openDB 2021-05-25 00:53:37 +00:00
.gitignore keep db and logs dirs for volume mounting 2021-05-30 13:00:52 -04:00
.prettierrc dockerized local dev env 2021-05-30 12:52:41 -04:00
Dockerfile dockerized local dev env 2021-05-30 12:52:41 -04:00
README.md dockerized local dev env 2021-05-30 12:52:41 -04:00
docker-compose.yml dockerized local dev env 2021-05-30 12:52:41 -04:00
index.ts dockerized local dev env 2021-05-30 12:52:41 -04:00
package.json dockerized local dev env 2021-05-30 12:52:41 -04:00
tsconfig.json dockerized local dev env 2021-05-30 12:52:41 -04: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