Set these accordingly within the correct config folder. If you are testing locally, use the /config/dev
folder for local configurations. By default, these variables should not be pushed to the remote.
TARGET_GUILD_ID
: the ID of the guild (server) in which coffee chats are being held.COFFEE_ROLE_ID
: the ID of the role the bot will use to decide who is enrolled into coffee chats.NOTIF_CHANNEL_ID
: the ID of the channel the bot will send system notifications to.ANNOUNCEMENTS_CHANNEL_ID
: the ID of the announcements channel.OFFICE_STATUS_CHANNEL_ID
: the ID of the office hours channel.
Set these into your .env
file. Make sure to not push these changes to git.
DISCORD_TOKEN
: the bot's token, found in the Discord Developer Portal. DO NOT REVEAL THIS TOKEN; ANYONE WITH THIS TOKEN CAN CONTROL YOUR BOT.
- Build docker image:
yarn image:build
- Start container in detached mode:
yarn start
- View and follow console output:
yarn logs
- 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