| config | ||
| fonts | ||
| images | ||
| .gitignore | ||
| bot.py | ||
| bwomp.mp3 | ||
| catpg.py | ||
| config.py | ||
| database.py | ||
| facts.txt | ||
| LICENSE | ||
| main.py | ||
| msg2img.py | ||
| README.md | ||
| requirements-gw.txt | ||
| requirements.txt | ||
| schema.sql | ||
Cat Bot

Discord Cat Bot Source Code
Development
Please note that self-hosting is hacky and isn't supported; instructions below are for testing/development/messing around. I won't stop you, but you WILL have to mess around with the code a bunch for it to work good, so be warned.
Prerequisites
- Python 3 (around 3.8 or so, newer is better ofc)
- PostgreSQL
- Git (optional)
Instructions
-
Clone the repository. You can use the green "Code" button at the top or a git command:
git clone https://github.com/milenakos/cat-bot.git -
Install requirements:
pip install -r requirements.txtIf you are running a Gateway Proxy, do
pip install -r requirements-gw.txtinstead. This uses a custom fork which contactslocalhost:7878instead and removes ratelimits and heartbeats. -
You will need to add all emojis you want to Discord's App Emoji in the Dev Portal.
If they aren't found there, they will be replaced with a placeholder.
All emojis can be downloaded here.
-
Go inside of the
config.pyfile and configure everything to your liking. -
Run the bot with
python bot.py. -
Done!
License
Cat Bot is licensed under GNU Affero General Public License v3.0 license. View LICENSE for more information.
CatPG, our custom-made asyncpg wrapper, is licensed under MIT License instead. The license text is present in the beginning of catpg.py file.