Pokemoves Bot is a Discord chat bot created to aid Pokemon GO PvP players, based on the pokemoves site project and written in node.js. A basic rundown of the PvP system is that Pokemon have a single fast move and up to 2 charged moves. Each use of the fast move generates a certain amount of energy that is used to "charge" the charged move. Knowing how many fast moves it takes for a Pokemon to generate enough energy to launch a charged move is vital information in high levels of play. This bot will take a Pokemon name as input and return the counts of how many of each fast move it will take to generate the energy for its charged moves.
Uses:
- Node.js v 17.0.1
- discord.js v13
Install any necessary components
npm install discord.js
npm install dotenv
Clone this project.
Afterwards, run it locally using node app
in the src directory. That's where the bot will be running from.
graph TD
subgraph "buildData Object"
pokemon{pokemon}
moves{moves}
counts{counts}
end
pokemon --> |Array of Pokemon Objects| pokemonObj{Pokemon Object}
moves --> |Object of Move Details| moveDetails{Move Details}
counts --> |Object of Fast Move Counts| fastMoveCounts{Fast Move Counts}
pokemonObj --> name["name"]
pokemonObj --> types["types"]
pokemonObj --> fastMoveIds["fastMoveIds"]
pokemonObj --> chargedMoveIds["chargedMoveIds"]
pokemonObj --> cmp["cmp"]
moveDetails --> |Move ID| moveID["Move ID"]
moveDetails --> |Move Details| moveName["name"]
moveDetails --> |Move Type| moveType["type"]
moveDetails --> |Energy Cost| moveEnergy["energy"]
fastMoveCounts --> |Fast Move ID| fastMoveID["Fast Move ID"]
fastMoveCounts --> |Counts for Charged Moves| chargedMoveCounts["Charged Move Counts"]
This bot builds on the great work of Jamie Humphries, whom's site can be accessed here.