Go to file
Charles Zhang cf38d5b181 dockerized local dev env
dockerize init

using docker compose to manage container

removed debug

using npm instead of yarn when building image

change container workdir

persist logs and db using volumes
2021-05-30 12:52:41 -04:00
.vscode dockerized local dev env 2021-05-30 12:52:41 -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 dockerized local dev env 2021-05-30 12:52:41 -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