Open drazenbebic opened 2 years ago
We can call the API for the specified Pokémon and from that obtain species.url. Calling that gives the evolution_chain.url which provides a json with the necessary info. It appears to all be in English so we'd then need to make calls to get the requested language names
It seems a bit long winded, but I don't see a more efficient option when we have a Pokémon name as the starting point
@Zircadraeya We should do that nonetheless.
Keep in mind that we also want to implement a caching system, which would then retrieve these pokemon only once from the API, and then store them in the cache. Resulting in fewer requests and faster responses.
When the
--evolutions
flat is set, the bot must output all evolutions of given Pokemon (if any).If the given Pokemon was Pikachu, for example, the Evolution part of the message should look like this:
-- Evolutions -- Pichu > Pikachu > Raichu
The name of the pokemon which was queried should be bold. If, for example, Raichu was queried then it would look like:
-- Evolutions -- Pichu > Pikachu > Raichu
If the queried Pokemon has no evolutions, then the following message must appear:
-- Evolutions -- Articuno does not have any evolutions.