Discord Cat Bot Source Code
- Python 3
- Git (optional)
- PostgreSQL (optional)
-
Clone the repository. You can use 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 -
You will need to upload all needed emojis to Discord's App Emoji in the Dev Portal.
If they aren't found there, they will be replaced with a placeholder (this breaks catching).
All emojis can be downloaded here.
-
Go inside of the
config.pyfile and configure everything for your liking. -
Run the bot with
python bot.py -
Done!
Most stuff can be customised by just using CTRL+F in main.py, but im gonna explain some stuff you might be intereted in.
Add your cat type name to type_dict dictionary near the top of the main.py file, the same way it is already written. (number is the chance, lower = rarer)
Note
You will need to upload an app emoji with the name of:
<your cat name all lowercase> + catExample:
supercat
Identical to the last section, you will have to add an emoji.
Then, run:
cat!custom <user id> <custom cat name>
Example: cat!custom 966695034340663367 Nerd
Go inside battlepass.json, and modify the levels there.
For each line there is 4 parameters:
"req": action you need to do to get the level. Can becatch,catch_type, orcatch_fast"req_data": the secondary value to the requirement. Amount of cats forcatch, amount of seconds forcatch_fast, or a cat type forcatch_type"reward": cat which will be given after completing the level"reward_amount": amount of cats for completing the level
Note
ALWAYS leave 2 empty levels at the end of your battlepass. Also, prisms unlock must always be on
catch_fasttask.
Go inside aches.json, and add an achievement.
The fields should be self-explanatory.
Unlike battlepass levels, you will need to actually code the achievement.
Good luck, I believe in you.
Cat Bot is licensed under Creative Commons Zero v1.0 Universal license. View LICENSE for more information.
