1
1
Fork 0
mirror of https://github.com/milenakos/cat-bot.git synced 2025-12-15 11:48:58 +01:00
A mirror of Cat Bot's GitHub repo. https://catbot.minkos.lol
2025-12-15 00:26:49 +03:00
config s12 rewards 2025-11-30 20:34:59 +03:00
fonts reorganize some stuff 2024-08-18 19:58:51 +03:00
images catnip v1.1 (#279) 2025-10-31 19:54:29 +00:00
.gitignore Add rain overview after a cat rain (#263) 2025-09-26 05:13:30 +00:00
bot.py rollback 2025-11-20 21:27:42 +03:00
bwomp.mp3 bwomp 2023-01-12 17:04:50 +03:00
catpg.py fix rawsql breaking on catpg hot reloads 2025-10-30 21:28:38 +03:00
config.py The Catnip Update (#268) 2025-10-24 17:03:55 +00:00
database.py various catpg optimizations 2025-08-05 16:36:07 +03:00
facts.txt use local facts file 2025-11-13 20:13:49 +03:00
LICENSE Update license to AGPLv3 2025-04-14 15:50:09 +00:00
main.py add inline link 2025-12-15 00:26:49 +03:00
msg2img.py show dates on catch in 4ks older than today 2025-10-12 17:47:36 +03:00
README.md add license for catpg.py 2025-07-16 04:38:54 +03:00
requirements-gw.txt rollback 2025-11-20 21:27:42 +03:00
requirements.txt rollback 2025-11-20 21:27:42 +03:00
schema.sql im stupid (#282) 2025-11-01 14:54:00 +00:00

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.