This is a slightly overdeveloped Discord bot that replies "C A G E" or "Y I K E S" to certain messages. Because building a dockerized, multi-platform, unit tested, and linted discord bot with GitHub CI-CD workflow is easier than manually clicking reactions in discord as an inside joke. Note wasn't easier or faster...
Uhm why? But go ahead make a suggestion or PR, I'll probably implement it.
The Cage bot requires a discord bot token set as env var. Get the bot token from here
export CAGE_BOT_TOKEN="xxxxxxxxxxxxxxxx"
Start the bot natively
python -m jorkol.discord_cage_bot.src.discord_cage_bot
Start the bot as container from repository image
docker stop discord_cage_bot &> /dev/null; docker pull ghcr.io/jorsanders/discord_cage_bot:latest && docker run -d --rm --name discord_cage_bot -e CAGE_BOT_TOKEN ghcr.io/jorsanders/discord_cage_bot:latest && docker logs -f discord_cage_bot
Start the bot as container from local build image
docker stop discord_cage_bot &> /dev/null; docker build . -t ghcr.io/jorsanders/discord_cage_bot:local && docker run -d --rm --name discord_cage_bot -e CAGE_BOT_TOKEN ghcr.io/jorsanders/discord_cage_bot:local && docker logs -f discord_cage_bot
- Install pyenv (Alternative install python and pip native)
- Install python version in pyenv
pyenv install
- Install pip packages
pip3 install -r requirements.txt
- (Optional) Install dev pip packages
pip3 install -r dev.requirements.txt