112 Commits

Author SHA1 Message Date
Eriks K
084a47b07a TelegramBot renamed to TelegramReporter 2020-12-09 13:30:18 +02:00
Eriks K
5082855440 Default Telegram's token moved to TelegramReporter 2020-12-09 13:29:28 +02:00
Eriks K
c9971f3570 str.format() -> f-string 2020-12-09 13:28:56 +02:00
Eriks K
fa3881bf10 Updated classes.OfferItem default price to be higher considerably higher than max price for cheapest most expensive items on sale (Q5 houses), Updated house renewal 2020-12-02 18:40:33 +02:00
Eriks K
b338ea598a Seperated battle finding logic from CitizenMilitary.find_battle_and_fight method 2020-12-01 13:02:10 +02:00
Eriks K
1418f580cd Spin wheel of fortune updates 2020-11-30 17:43:42 +02:00
Eriks K
d6fbaa7945 Maverick fighting should be explicitly enabled through Citizen.config 2020-11-26 16:16:15 +02:00
Eriks K
8aa90a7dbf Lint 2020-10-22 18:04:06 +03:00
Eriks K
241f1642ce Session dump/load, Citizen.inventory update, memory and network optimization, python3.6 support 2020-10-22 16:26:59 +03:00
Eriks K
ad24338f4d wheeloffortune bugfix 2020-09-29 17:38:26 +03:00
Eriks K
bf77f21b60 MyCompanies export as dict optimised 2020-09-29 15:04:51 +03:00
Eriks K
123b6cf4ed Fight reporting unified and moved to Reporter.report_fighting 2020-09-23 13:22:31 +03:00
Eriks K
a889e9efa1 bugfix 2020-09-21 20:17:56 +03:00
Eriks K
48b5e473aa doc generation bugfixes 2020-09-21 11:34:50 +03:00
Eriks K
b723660f23 Fixups and type checks 2020-09-21 11:26:32 +03:00
Eriks K
cf797f2f60 Fixes and updates 2020-08-18 13:14:41 +03:00
Eriks K
c8f41b97af Company cleanup optimisation 2020-07-28 19:25:22 +03:00
Eriks K
d483bcbcb9 JSON.dump sort_keys parameter throwing mysterious errors 2020-07-28 18:29:25 +03:00
Eriks K
a316f277fb Fixed memory leak in Battle and MyCompanies classes 2020-07-28 18:28:03 +03:00
Eriks K
bfa6cb1e78 bugfix 2020-07-09 19:10:55 +03:00
Eriks K
1f21a71c74 bugfix 2020-07-09 18:51:00 +03:00
Eriks K
ffbbd25e54 Code cleanup 2020-07-09 14:42:40 +03:00
Eriks K
0061503581 passed int instead of Country to travel 2020-07-09 08:27:48 +03:00
Eriks Karls
6a9b574454 class serialization 2020-07-09 08:09:58 +03:00
Eriks K
94c416faa5 Battle, BattleSide, BattleDivision repr and str definitions 2020-07-08 18:27:48 +03:00
Eriks K
ba840765be Moving away from passing object ids around and towards passing objects and even using object functions 2020-07-08 17:30:22 +03:00
Eriks K
6c8dbcd99e Updated fighting division chooser 2020-07-04 12:28:02 +03:00
Eriks K
bcb27da54f Summer challange shanged battle list API 2020-07-04 00:31:26 +03:00
Eriks Karls
5bd3d72a63 Quickfix for summer terrains 2020-07-03 23:54:32 +03:00
Eriks K
ed96143c80 Flake8
Battle.div is no longer a defaultdict, but should raise error if trying to access division which isn't assigned
2020-06-25 14:17:05 +03:00
Eriks K
66f0e648df Citizen.to_json() bugfixed and optimised 2020-06-18 10:10:22 +03:00
Eriks K
a825917a98 WAM/Employ bugfix
Company sorting bugfix
2020-06-16 16:59:56 +03:00
Eriks K
b480ed7230 Companies and holdings created as python objects from Dicts 2020-06-15 16:02:36 +03:00
Eriks K
ff869e0403 Bomb deploy bugfix 2020-06-15 15:47:48 +03:00
Eriks K
5712007e3f Typos 2020-05-14 14:30:02 +03:00
Eriks K
ac4fc9baab Less intrusive reporting 2020-05-14 12:11:39 +03:00
Eriks K
05964f6c58 CitizenEconomy.get_market_offers() fixed 2020-05-12 13:45:32 +03:00
Eriks Karls
904fd4efc8 Moved utils.report_promo to classes.Reporter.report_promo 2020-04-23 14:39:42 +03:00
Eriks Karls
2aa1cbd79e PEP8 2020-04-23 14:28:26 +03:00
Eriks Karls
260344bcbe fix 2020-03-05 10:00:22 +02:00
Eriks Karls
d4a3719645 telegram queue never cleared 2020-03-04 11:34:03 +02:00
Eriks Karls
93f2f2887f Added wheel of fortune endpoints, restructured work as manager, limiting log row length to 120 characters 2020-03-03 13:07:39 +02:00
Eriks Karls
bf5f3d74b3 Remove depricated Config.wt property
Add Config.ot for overtime enabling/disabling
2020-02-26 18:43:27 +02:00
Eriks Karls
b76ea2c4ae Medal notifications 2020-02-26 12:09:36 +02:00
Eriks Karls
ce02a39158 Move eRepublik API helper class to seperate file and split up class into logical pieces 2020-02-24 17:19:06 +02:00
Eriks Karls
fd1880c50f Some notifications are still being displayed the old way 2020-02-19 18:52:40 +02:00
Eriks Karls
f6433908b4 New notifications API 2020-02-18 20:11:34 +02:00
Eriks Karls
a2cf479135 Some TelegramBot tweaks 2020-01-16 13:49:24 +02:00
Eriks Karls
00b87dc832 when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report 2020-01-14 13:43:10 +02:00
Eriks Karls
15e6deebda Battle initialization without valid data should be avoided to not run into strange and hard to trace bugs.
Jsonification updates - if simplejson is available some packages are importing simplejson with try-except and later throwing simplejson errors which should be cought when calling .json() on every request.
Fixed error logging
2020-01-13 21:33:50 +02:00