Skip to content

This is a slightly overdeveloped Discord bot that replies "C A G E" or "Y I K E S" to certain messages

Notifications You must be signed in to change notification settings

JorSanders/Discord-Cage-Bot

Repository files navigation

Discord Cage bot

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...

Badges

GitHub Super-Linter

Contribute?

Uhm why? But go ahead make a suggestion or PR, I'll probably implement it.

Usage

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

Setup

  • 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

About

This is a slightly overdeveloped Discord bot that replies "C A G E" or "Y I K E S" to certain messages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published