Skip to content

Move counts for Pokémon GO battles.

License

Notifications You must be signed in to change notification settings

swiftcast/pokemoves

Repository files navigation

Pokemoves Bot

About

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.

Technologies

Uses:

  • Node.js v 17.0.1
  • discord.js v13

Setup

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.

Notes

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"]
Loading

Credits

This bot builds on the great work of Jamie Humphries, whom's site can be accessed here.

About

Move counts for Pokémon GO battles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published