A C# Discord bot that fetches Pokémon info and plays a guess-the-Pokémon game using PokeAPI.
🔍 !pokemon [name] [shiny (optional)]
Shows information about a specific Pokémon by name. You can add shiny at the end to get the shiny version.
Examples:
!pokemon bulbasaur
!pokemon bulbasaur shiny

🔀 !random [shiny (optional)]
Fetches a random Pokémon with a 50% chance to be shiny automatically. You can also force shiny with shiny (optional).
Examples:
!random
!random shiny
❓ !guess
Starts a guessing game where a hidden Pokémon’s image is displayed and you have 15 seconds to guess which Pokémon it is!

😭 !togglecry
Toggles whether the bot sends Pokémon cry audio files in chat.
Only server managers can use this command.
This bot uses the PokemonApiWrapper library to interact with the official PokeAPI, retrieving Pokémon data such as stats, sprites, and more.
-
Download the repo
-
Download DSharpPlus, DSharpPlus.CommandsNext, DSharpPlus.Interactivity, Newtonsoft.Json and my API wrapper for PokeAPI on my GitHub
-
Add a
config.jsonfile to your VS project to include your own bot token and prefix.
Use the following format:{ "Token": "your-bot-token-here", "Prefix": "!" } -
Invit the bot to your server and have fun
- More detailed Pokémon information, including abilities,
various sprites (like shiny versions), and additional features.
- Add more comments to the commands .cs file
- Updat the images and available commands on the README.md
This project is open source. Feel free to contribute or report issues!