/cat-bot

Discord Cat Bot Source Code

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

Cat Bot PFP Cat Bot top.gg Discord Server Wiki

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

  1. 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
  2. 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 contacts localhost:7878 instead and removes ratelimits and heartbeats.

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

  4. Go inside of the config.py file and configure everything to your liking.

  5. Run the bot with python bot.py.

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