NPM package to automatically solve hints & check the rarity of pokemon, made for pokemon discord bots like Pokétwo
Use the package manager npm to install the module.
npm i pokehint
const { solveHint, checkRarity } = require('pokehint');
// Solving hints
var hint = message.content;
console.log(solveHint(hint)) // Logs the Pokémon that has been found.
// Checking the rarity
var pokemonName = 'Moltres';
console.log(checkRarity(pokemonName)) // Logs Moltres' rarity: 'Legendary'.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.