add rankings case
Closed this issue · 0 comments
bukinoshita commented
cmd: pokemon rankings
rankings is where user can see the rankings of best trainers (sorted by who has more pokemons - duplicated pokemon should not count)
Steps
-
Fetch rankings
GET /rankings
-
Find current user, show it first and then rankings
> You are the 45th on Poke Rankings
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
⇢ ${index + 1}. ${user.name} ${user.pokemons.length}
...