This repository contains an example of a PokeMMO Discord bot that anyone can use. It demonstrates how to utilize the PokeMMO-Data library to provide various commands related to PokeMMO. The data used by the bot is located in the data
folder.
- Fetch current in-game day and time for PokeMMO.
- Retrieve information about specific Pokémon.
- List available commands.
- Provide details about Pokémon types, PvP tiers, egg groups, egg moves, locations, learnable moves, abilities, and specific moves.
- Python 3.8 or higher
- Discord bot token
- PokeMMO-Data
-
Clone the repository:
git clone https://github.com/PokeMMOZone/pokemmo-discord-bot-example.git cd pokemmo-discord-bot-example
-
Install the required Python packages:
pip install -r requirements.txt
-
Configure the bot:
-
Copy the sample configuration file and rename it to
config.yml
:cp config.yml.sample config.yml
-
Edit
config.yml
to include your Discord bot token and the appropriate channel ID where the bot should listen for commands.
-
-
Run the bot:
python run.py
The config.yml
file should contain the following:
token: "YOUR_DISCORD_BOT_TOKEN"
command_channel_id: YOUR_COMMAND_CHANNEL_ID
Replies with a hello message.
Replies with the current in-game day and time in PokeMMO.
Displays all the available commands and their descriptions.
Provides information about a specific Pokémon.
Provides information about a specific Pokémon type or lists all types if 'all' is specified.
Provides information about a specific PvP tier or lists all tiers if 'all' is specified.
Provides information about a specific Egg Group or lists all Egg Groups if 'all' is specified.
Responds with egg moves and breeding chains for the specified Pokémon. (Limit 30 per move.)
Provides information about locations where a specific Pokémon can be found.
Provides information about moves that a specific Pokémon can learn.
Provides information about a specific ability and Pokémon that can learn it.
Provides information about a specific move and Pokémon that can learn it.
The data used by this bot is sourced from the PokeMMO-Data project. Make sure to keep the data in the data
folder up to date with the latest data from the PokeMMO-Data repository.
Feel free to open issues or pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the GNU General Public License v2.0. See the LICENSE file for more details.