[Rizon] New command: .ranking

Day 1,347, 09:44 Published in Italy Italy by Martin Sileno

Hi,

a new command today to view a citizen's national/global ranking position.

.ranking / .rankings

Example:

18:16 .rankings elle dinar andari
18:16 :: Elle Dinar Andari [207162] rankings in Indonesia (10,249 citizens) :: Strength 11th (7,492.3😎 :: Rank points 4th (7,288,309) :: Q5 Influence 9th (4,49😎 :: XP 1st (40,971) ::
18:16 :: Elle Dinar Andari [207162] global rankings (218,057 citizens) :: Strength 101st (7,492.3😎 :: Rank points 122nd (7,288,309) :: Q5 Influence 75th (4,49😎 :: XP 85th (40,971) ::

(like many other commands, it works with -i (id) and -n (citizen linked to IRC nick))

18:19 .rankings -i 478002
18:19 :: zakuro [478002] rankings in Italy (2,571 citizens) :: Strength 19th (5,040.53) :: Rank points 29th (1,079,306) :: Q5 Influence 22nd (2,44😎 :: XP 20th (16,96😎 ::
18:19 :: zakuro [478002] global rankings (218,057 citizens) :: Strength 2,251st (5,040.53) :: Rank points 5,279th (1,079,306) :: Q5 Influence 2,806th (2,44😎 :: XP 4,243rd (16,96😎 ::

[!] Note: this command uses data from my erep citizens database, it updates only once per day at ~16 CEST (07:00 erep time).
Also, this command doesn't use the official API, and if the custom one (it's mine) is not stable, is buggy or makes my server explode and burns my house the command might be removed.
It is just a test feature, if it works I'll add more commands* like this soon. Not many ideas on what to add though, suggestions are welcome!
* Planned commands:
- fix .market to show prices WITH taxes and make it find the global best prices too.
- .tax to view taxes in a country/industry
- ???

As always, report bugs/suggestions to me (martin / Rizon, or #fishbot)



~ martin (IRC nick: martin)
eRep bot developer / IRC op on Rizon
Latest bot update (.battle): http://www.erepublik.com/en/article/-rizon-new-command-battle-1815640/1/20
bot complete command list: http://www.erepublik.com/en/article/-rizon-erepublik-bot-updated-command-list-1751575/1/20
My eRep website with rankings product prices etc: http://erep.1way.it (this is where the data for this command comes from)