Discord Cat Bot Source Code
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.
- Python 3 (around 3.8 or so, newer is better ofc)
- PostgreSQL
- Git (optional)
-
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.txt
If you are running a Gateway Proxy, do
pip install -r requirements-gw.txt
instead. This uses a custom fork which contactslocalhost:7878
instead 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.py
file and configure everything to your liking. -
Run the bot with
python bot.py
. -
Done!
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.