[Rizon] eRepublik bot updates: option -h

Day 1,475, 09:57 Published in Poland Indonesia by Elle Dinar Andari

This article was originally posted by Martin Sileno

tldr: you can add -h to your command to make it work
NOTE: citizen data is tremendously out of date (blame erepublik), but at least it will work with .link / .donate etc.


Hi.

As you may have noticed, the eRepublik API is broken.
Since admins are... too... "busy"... to actually fix something, I made a mirror of all citizen feeds (~294k citizens included) on my custom API (heapy).
You might notice outdated data for most of the citizens (as compressed feeds... are broken too!) but.. better than nothing.

How to make commands use this external API? Just add a "-h" option (it means --heapy, Hate Erepublik API, the name of my API) to your command!

NOTE: There may be bugs. This was made in half an afternoon and not tested much.

For example,
.lp zakuro .lp zakuro -h
same (add a "-h") goes for .link, .donate, .land, .message, .avatar, .fc and .medals.


If you do NOT use the -h option, these are the working (and using live data) commands:
* bestprice (market, bp) shows the best offer in the selected market
* country information about a country
* distance (dist) calculates zones-distance between two regions
* rankings (ranking) shows a citizen's ranking position
* resources (resource, res) summary of a country's resources
* tax information about a country
`


these command use my custom API (heapy) and update once/hour (or /day, depending on the kind of data).

The commands: .battle, .battles, .borders, .currency, .mpps, .region, .value; will work normally (they do not need a working citizen feed).

Commands only working with specific options:
* fightcalc (fc) calculates influence done with different weapon qualities
only using at least options "-s" and "-r" (strength and rank),
like: .fc -s 5000 -r 42
or: .fc -s 3000 -r 12 -f 50
etc.

* sscalc (ssc) calculates days/gold required for the next SuperSoldier medal
only using option "-s" (your current strength value),
like: .ssc -s 5400
or: .ssc -s 5212 -123 -f 2
etc.

If you want to complain, please send a ticket.
It will probably be ignored anyway, that's what happened with mine.
I sent one exactly 2 months ago, 0 replies. Cool. (That's also the reason I quit playing from that day on; no reason to keep playing a game where you get no respect from the administration.)

Do NOT message me asking when the API will be back or order me to fix it. I have nothing to do with eRepublik, I only made and maintain this bot.


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

[personal spam here]
heapy (hate erepublik api, my custom API) :: http://api.1way.it/erep/
if you're interested, you can find these mirrored citizen feeds here:
- by name: http://api.1way.it/erep/citizen/name/zakuro
- by i😛 http://api.1way.it/erep/citizen/id/207162
bot incomplete 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