[Rizon] eRepublik bot updates: .distance

Day 1,413, 09:37 Published in Italy Italy by Martin Sileno

small update.

First of all, API has been quite slow for some days, this is the reason why the bot sometimes times out.
Also, compressed feeds for several countries are broken (for days too). This is why websites using compressed feeds have "holes" in countries' data.
If you want, if you think API is an important part of the game, let admins know and send a ticket!
A lot of developers spend hundreds of hours making tools to improve eRepublik for free (in my case, I pay for my host!).
Think of all the great tools we could make, if admins fixed/improved API. Some bugs reported in the discussion group are now more than 1 year old, eRep's employee on the group hasn't replied to a topic for over 6 months...

tldr: api sux, fix pls

Thanks for the media mogul medal I got with this article \o/

Fixed ranks for all God of War ranked citizens (romper etc)
Now .fc calculates the correct damage

*** New command ***

.distance / .dist

Calculates distance in zones between two regions. Useful to calculate moving cost.

Syntax is:
[1] .dist [, ]
If your nick is registered with the bot (using .regnick), starting_region is optional. If no starting_region is given, your citizen's residence region will be used.
OR
[2] .dist
Use this if you want to move to a country and you are too lazy to check all the regions to find the cheapest one to move to. It will find the cheapest region from the end_country region list.

Examples:

// find distance between two given regions
12:13 < martina> .dist south australia, far eastern russia
12:13 < eRepublik> :: South Australia [D5] -> Far Eastern Russia [A5] :: Distance 2 zones :: Cost 40 currency units ::

// only if your nick is registered with the bot, find the distance FROM your citizen's current region (in my case, Alberta) to the given region (north of brazil):
12:08 < martina> .dist north of brazil
12:08 < eRepublik> :: Alberta [A1] -> North of Brazil [C2] :: Distance 4 zones :: Cost 80 currency units ::

// if I want to move to Russia (from Alberta):
15:49 < martina> .dist russia
15:49 < eRepublik> :: Alberta [A1] -> Russia (Far Eastern Russia) [A5] :: Distance 2 zones :: Cost 40 currency units ::
// in this case, FER is the closest region to Canada (cheapest)

// this also works with country codes:
15:51 < martina> .dist uk
15:51 < eRepublik> :: Alberta [A1] -> United Kingdom (London) [A3] :: Distance 3 zones :: Cost 60 currency units ::


Note: 160 ITL were spent testing this command : (

Fun fact:

The eRepublik map is both a sphere and a cylinder. Who made it thought Australia was near to Eastern Russia/Alaska, and Chile/Argentina near to Alaska/Canada.



What kind of geography did you study, admin?!


Now, some stats about our bot:

Reporting perio😛 2011-02-21 -> 2011-10-03

(18:34:09) (eRepublik) Registered users: 20913.
(18:34:09) (eRepublik) Registered channels: 4658.

Total commands: 2,734,347
Average commands: 12,206 / day

********************** Commands used **********************

.fc => 981322
.lp => 667546
.link => 362699
.donate => 302585
.battle => 85696
.avatar => 66687
.medals => 57081
.ssc => 27910
.help => 21774
.register_citizen => 20566
.region => 15909
.mpp => 13197
.value => 10433
.country => 9240
.battles => 9058
request => 7961
.borders => 7751
.market => 7188
.ranking => 6059
.sscalc => 5822
help => 4917
.bp => 4802
.currency => 4410
.info => 3773
.cp => 3679
.rankings => 2990
news => 2899
.regnick => 2881
.regcit => 2555
.bestprice => 2059
.lookup => 1704
.mpps => 1397
.land => 1084
.tax => 1059
remove => 981
.resources => 956
.company => 948
.register_company => 795
hi => 669
.fightcalc => 655

********************** Bot (ab)users - commands / user **********************

jhonatan94 => 4728
Akasuna_Itachi => 4538
Pecebrero => 4469
GleNoobaPosleKise => 4035
Wandutza => 3936
heiberth => 3931
MeaniE => 3833
Coder => 3558
[SS]Boban => 3351
koye => 3298
denismacedonian14 => 3130
hoffa13 => 3126
bibermk => 3117
coolaH => 3116
Sadanaga => 3025
Gaol4e => 3010
Gaston-46 => 3006
CooLMasTR => 2985
[MTO]bibermk => 2876
Henry_the_8th => 2818
Genas => 2798

***

Probably the last update for a while, not idea what to do next (suggestions are welcome) : (
As always, report bugs to me (/query martin on Rizon, or #fishbot)



~ martin (IRC nick: martin)
eRep bot developer / IRC op on Rizon

[personal spam here]
Latest bot update (.resources, .country, .sscalc, .message, .land): http://www.erepublik.com/en/article/-rizon-erepublik-bot-updates-resources-country-sscalc-message-land-1869663/1/20
heapy (hate erepublik api, my custom api) :: http://api.1way.it/erep/
bot semi-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

if you didn't already subscribe to this newspaper (how dare you?!), do it! Only need 26 more for my MM medal \o/