You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.vscode | 2 years ago | |
db | 2 years ago | |
logs | 2 years ago | |
src | 2 years ago | |
.dockerignore | 2 years ago | |
.eslintrc | 2 years ago | |
.gitattributes | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago | |
index.ts | 2 years ago | |
package.json | 2 years ago | |
tsconfig.json | 2 years ago | |
yarn.lock | 2 years ago |
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
- Build docker image:
yarn image:build
- Start container in detached mode:
yarn start
- 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