Skip to content
/ p2hb Public
forked from p2hb/p2hb

A Discord Bot that provides additional useful functionality to Pokétwo.

License

Notifications You must be signed in to change notification settings

2satish/p2hb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P2HB

Discord Bots

Usage

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.

Running

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.

  1. Get Python 3.8 or higher

This is required to run the bot.

  1. Set up venv

Do python3.8 -m venv venv

  1. Install dependencies

We use Poetry to manage dependencies. Make sure you have Poetry installed, and just run poetry install.

  1. Create the database in MongoDB

Please refer to the MongoDB website to do this.

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

Contributing

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.

Things to be worked on

  • 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

Credits

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.

About

A Discord Bot that provides additional useful functionality to Pokétwo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%