CloudBotIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
273 stars 252 forks source link

Redid currency plugin, since yahoos table has been dead for months #282

Closed Duckle29 closed 5 years ago

Duckle29 commented 6 years ago

I redid my plugin to use fixer.io instead of yahoo query, since the usertable responsible for exchange rates have been dead for ages.

I'd like some help with tweaking the plugin, so that when people request a currency conversion, the plugin firsts checks if it has a result cached that is less than 1 day old. If so it'll use that cached data, to save on API hits. Otherwise it'll refresh it's cache. This way the plugin will only do 31 requests / month, out of the 1000 free.