Create pythonpackage.yml
Ēriks Karls
2020-03-03 19:16:19 +02:00
93f2f2887fAdded wheel of fortune endpoints, restructured work as manager, limiting log row length to 120 characters
Eriks Karls
2020-03-03 13:07:39 +02:00
7ec15a9645New endpoints opened
Eriks Karls
2020-02-27 18:25:35 +02:00
e0c09672b1call to super must include email and password
Eriks Karls
2020-02-27 18:25:04 +02:00
d6a0d5a704BaseCitizen should have email and password at initialization to be able to login
Eriks Karls
2020-02-27 18:23:59 +02:00
22dc18d80dLeaderboards are now directly available from Citizen instance
Eriks Karls
2020-02-27 16:03:58 +02:00
772c09a2afCitizen.eat() and Citizen.eat_eb() were lost after restructuring
Eriks Karls
2020-02-27 08:23:27 +02:00
bf5f3d74b3Remove depricated Config.wt property Add Config.ot for overtime enabling/disabling
Eriks Karls
2020-02-26 18:43:27 +02:00
70e78023ebSorted inheritance
Eriks Karls
2020-02-26 18:42:42 +02:00
8dcebdecd2no message
Eriks Karls
2020-02-26 18:42:25 +02:00
77bcfb3df6Move commit id to __init__
Eriks Karls
2020-02-26 18:41:56 +02:00
a01b85154fBump version: 0.19.4.2 → 0.20.0
Eriks Karls
2020-02-26 18:29:26 +02:00
04bb0be837Modularity improvements
Eriks Karls
2020-02-26 18:19:56 +02:00
62e265e7e1COMMIT_ID updater
Eriks Karls
2020-02-26 18:18:47 +02:00
dd2c20cc41no message
Eriks Karls
2020-02-26 12:09:45 +02:00
b76ea2c4aeMedal notifications
Eriks Karls
2020-02-26 12:09:36 +02:00
b7211b7c75Notification parsing and deleting
Eriks Karls
2020-02-26 12:09:03 +02:00
07ba1795d3WIP: Splitting Citizen class into logical pieces for encapsulation, modularity and easier maintenance
Eriks Karls
2020-02-24 17:20:16 +02:00
ce02a39158Move eRepublik API helper class to seperate file and split up class into logical pieces
Eriks Karls
2020-02-24 17:19:06 +02:00
8e5ae0320aMerge branch 'bugfix'
Eriks Karls
2020-01-26 20:44:43 +02:00
5c258d7aaeHey Plato! If You're reading this - fix your variable types and there will be 90% less bugs in Your code!!!
Eriks Karls
2020-01-26 20:44:21 +02:00
GHSA-7fcj-pq9j-wh2r
Ēriks Karls
2020-01-17 15:40:34 +02:00
a2cf479135Some TelegramBot tweaks
Eriks Karls
2020-01-16 13:49:24 +02:00
00b87dc832when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report
Eriks Karls
2020-01-14 13:43:10 +02:00
0dd1ae9ac5Too broad exception was cought without notifying about actual error - when Telegram isn't enabled
Eriks Karls
2020-01-14 13:42:34 +02:00
15e6deebdaBattle 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
Eriks Karls
2020-01-13 21:33:50 +02:00
4f92894ab6DocUpdate
Eriks Karls
2020-01-13 10:40:22 +02:00
9c64bfac0fMerge branch 'inventory_updates'
Eriks Karls
2020-01-13 10:31:05 +02:00
1f07f2e270Update: Citizen.set_default_weapon() - eRepublik should return list with all available weapon qualities, but when a battle is just launched, they return only dict with barehands Citizen.fight() - no longer calls self.set_default_weapon() Citizen.find_battle_and_fight() - now calls self.set_default_weapon() just before fighting Citizen.update_war_info() - returns previous battle list if responses 'last_updated' isn't more than 30s old
Eriks Karls
2020-01-13 10:28:42 +02:00
71d204843dPython 3.8, isort, requirement update
Eriks Karls
2020-01-09 12:03:11 +02:00
d9305214ebRepresentation of Citizen class
Eriks Karls
2020-01-07 19:55:31 +02:00
5556d5f772Created method for current products on sale. Updated inventory to also include products on sale
Eriks Karls
2020-01-07 16:28:42 +02:00
e374aa8a54Implemented division switching, improved multi bomb deploy with auto traveling, Citizen.fight() simplified battle data gathering logic -> Citizen.shoot logic improved Citizen.all_battles are now defaultdict with default value of empty/invalid battle, for times when trying to do things with battle which is not in all_battle dict
Eriks Karls
2019-12-18 16:25:52 +02:00
90bec8263012th anniversary minimal methods
Eriks Karls
2019-11-21 11:06:29 +02:00
aedfbf446512th anniversary endpoints
Eriks Karls
2019-11-21 10:42:55 +02:00
66f459c692Inventory structure update
Eriks Karls
2019-10-30 19:42:05 +02:00
ef27960ff1no message
Eriks Karls
2019-10-30 19:35:40 +02:00
c48af9a891Thread stopping
Eriks Karls
2019-10-30 18:16:18 +02:00
1abfdb71acCode cleanup and serialization improvements
Eriks Karls
2019-10-30 16:55:33 +02:00
e060f67666More inventory structure updates
Eriks Karls
2019-10-29 16:06:07 +02:00
06d8d1c0b5Telegram threading queue has been messing with error reporting
Eriks Karls
2019-10-29 16:05:22 +02:00
adda8dcb54Structure requests by year/month/date folders, to keep requests in cleaner format. The same medal kind (Maverick div BHs) can have different reward value - group them by kind-reward. Citizen.post bugfix (with no data and json arguments) TODO: Must check where post is called without data or json
Eriks Karls
2019-10-28 14:17:45 +02:00
c7f084436dInventory structure update
Eriks Karls
2019-10-18 18:18:39 +03:00
94a87091a4Allow full energy reports once every half an hour
Eriks Karls
2019-10-17 19:15:17 +03:00
c0b97f112dTelegramBot.send_message should always append to send queue
Eriks Karls
2019-10-16 15:10:38 +03:00
3d895bd085Damage calculation
Eriks Karls
2019-10-16 15:09:28 +03:00
d548d1bbf1Hit calculation can be static
Eriks Karls
2019-10-15 20:03:38 +03:00
b1eefcc662CSRF Attack Detecked loop on POST requests.
Eriks Karls
2019-10-15 20:03:22 +03:00
41798c446cReturn successfully transfered item count
Eriks Karls
2019-10-15 11:28:56 +03:00
074da3adbeTelegram reporter queue bug
Eriks Karls
2019-10-14 19:21:00 +03:00
6c9a9e920dDelay telegram notification sending by appending multiple messages to queue and after minute of inactivity clear the queue by sending all messages
Eriks Karls
2019-10-14 13:44:31 +03:00
ffa2fc109cTravel for fighting fixed
Eriks Karls
2019-10-14 13:14:30 +03:00
f7f4028f32Revert "Travel for fighting"
Eriks Karls
2019-10-14 13:03:36 +03:00
e91705ce90no message
Eriks Karls
2019-10-14 13:03:19 +03:00