Hi Everyone!
My team and I decided to create a discord bot which lets users on the server create pokemon teams and battle each other. This was made possible using an external Pokemon API called PokeApi and a wrapper for the API called PokeBase. Since this game is based on the online game Pokemon Showdown, we used the standard 6 Pokemon per team limit and 4 moves per Pokemon limit. Furthermore, the current implementation works with all Pokemon in Generation 1.
For the game to start, the users first create their team by typing the command ‘.addpoke ’ and this initiates the team building. The user is then prompted to then add four moves to the pokemon. Here, it is important to note that the moves added by the user must be valid moves according to the gen1 pokedex and so, if a magikarp is asked to learn ‘thunder’, it’ll reject the command and ask the user to input a valid move, such as ‘splash’.
Once each member has created their respective teams, they can then challenge another player to a battle using the command ‘.battle @’. The battle runs using discord embed and players select moves by clicking on one of the four possible reactions, each of which correspond to the pokemon’s move. The UI also displays the pokemon’s current HP as well as the enemy pokemon’s current HP. Finally, it displays the remaining pokemon in the user’s party. Once a pokemon dies, the next pokemon from the user’s team is switched in. The first player to run out of usable pokemon loses and the other player wins the game!
Built With
- pokeapi
- pokebase
- python

Log in or sign up for Devpost to join the conversation.