Feel free to host your own instance of the bot, however, you will be missing out on the thousands of tags with useful information compiled by users, and you will not be able to use the economy on the P2HB Offical Server.
While I would prefer if you just added the main instance of the bot to your server, here is the setup process to run your own instance.
- Get Python 3.8 or higher
This is required to run the bot.
- Set up venv
Do python3.8 -m venv venv
- Install dependencies
We use Poetry to manage dependencies. Make sure you have Poetry installed, and just run poetry install
.
- Create the database in MongoDB
Please refer to the MongoDB website to do this.
- Setup config
Create a config.py
file in root directory using the following template:
import random
DEFAULT_PREFIX = ">" # the bot's default prefix
BOT_TOKEN = "token" # your bot's token
DATABASE_URI = "mongodb+srv://...url" # MongoDB URI, you can get this once you set it up
DATABASE_NAME = "name" # name of database
DBL_TOKEN = "" # Top.gg token - not required
def RATES(bet):
if (true) # the random function of the gambling games
return true
That's it! You should be ready to run the bot now.
I am open to contributions: please make an issue first, and then go ahead and create a pull request if you want to tackle it yourself.
- Automatic Collector/Shiny Hunt system
- Gym Badges/Leaders
- Refactor puzzle games
- Add images-based puzzle guessing games
- Create command documentation
- Automatic Price Checker/Duelish Checker
Parts of code are from the official server helper bot: https://github.com/poketwo/helper-bot.
Assets and pokemon data are taken from official bot: https://github.com/poketwo/poketwo.