59 Commits

Author SHA1 Message Date
Eriks Karls
3599dc40fc More logging, Citizen.get_raw_surplus() fixed and moved to Citizen.my_companies.get_wam_raw_usage() 2020-01-02 22:42:40 +02:00
Eriks Karls
e374aa8a54 Implemented 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
2019-12-18 16:25:52 +02:00
Eriks Karls
12aee23739 Variable and method redeclaration 2019-12-18 11:44:18 +02:00
Eriks Karls
39093accd0 Type hinting. Class parameter defined lists where shared accross instances. 2019-12-13 19:30:43 +02:00
Eriks Karls
aba8c15fd3 AutoPost medals 2019-12-03 15:22:35 +02:00
Eriks Karls
f294506a2d Updated wars list, added default weapon choosing (q7 - ground, bare hands - air) 2019-12-03 09:52:53 +02:00
Eriks Karls
ec1141a46e set serialization 2019-11-21 14:04:43 +02:00
Eriks Karls
90bec82630 12th anniversary minimal methods 2019-11-21 11:06:29 +02:00
Eriks Karls
aedfbf4465 12th anniversary endpoints 2019-11-21 10:42:55 +02:00
Eriks Karls
ef27960ff1 no message 2019-10-30 19:35:40 +02:00
Eriks Karls
c48af9a891 Thread stopping 2019-10-30 18:16:18 +02:00
Eriks Karls
1abfdb71ac Code cleanup and serialization improvements 2019-10-30 16:55:33 +02:00
Eriks Karls
06d8d1c0b5 Telegram threading queue has been messing with error reporting 2019-10-29 16:05:22 +02:00
Eriks Karls
adda8dcb54 Structure 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
2019-10-28 14:17:45 +02:00
Eriks Karls
94a87091a4 Allow full energy reports once every half an hour 2019-10-17 19:15:17 +03:00
Eriks Karls
c0b97f112d TelegramBot.send_message should always append to send queue 2019-10-16 15:10:38 +03:00
Eriks Karls
b1eefcc662 CSRF Attack Detecked loop on POST requests. 2019-10-15 20:03:22 +03:00
Eriks Karls
074da3adbe Telegram reporter queue bug 2019-10-14 19:21:00 +03:00
Eriks Karls
6c9a9e920d Delay telegram notification sending by appending multiple messages to queue and after minute of inactivity clear the queue by sending all messages 2019-10-14 13:44:31 +03:00
Eriks Karls
f7f4028f32 Revert "Travel for fighting"
This reverts commit 07c88810923b7051e997db746076a9e18656c0f5.
2019-10-14 13:03:36 +03:00
Eriks Karls
ca65a1ffe1 iPython indexer infinite loop and crash 2019-10-14 12:54:59 +03:00
Eriks Karls
07c8881092 Travel for fighting 2019-10-13 23:50:45 +03:00
Eriks Karls
2f8120bd0d Telegram formatting 2019-10-01 09:59:37 +03:00
Eriks Karls
fe9a118875 Telegram loop traceback formatting
Fixed double code execution in Citizen.update_citizen_info(None) calling Citizen.update_citizen_info(html) and executing code twice.
2019-09-29 09:40:25 +03:00
Eriks Karls
17c73c79a7 Trying to find how and where Telegram spam happens 2019-09-28 16:03:31 +03:00
Eriks Karls
7533608316 Version updates 2019-09-27 13:51:09 +03:00
Eriks Karls
0ca0f49f92 bugfix 2019-09-27 11:20:00 +03:00
Eriks Karls
3f1b0018b2 Misplaced telegram queueing 2019-09-27 11:11:18 +03:00
Eriks Karls
3a7dd9a6fa Init update 2019-09-27 11:02:26 +03:00
Eriks Karls
630c7cbc76 Was trying to send messages before citizen has been initialized 2019-09-27 10:26:53 +03:00
Eriks Karls
20bba4b9f9 Telegram integration 2019-09-26 15:42:16 +03:00
Eriks Karls
8db4ab1f0f Company sorting for wam: Raw factories, food, weapon, house, air, q7...q1, Final factories, food, weapon, house, air, q7...q1 2019-09-25 09:38:27 +03:00
Eriks Karls
896b1b2432 Bugfix, cleanup and optimisation 2019-09-05 15:01:54 +03:00
Eriks Karls
4eb96d7f1e Testing should travel and should fight 2019-09-03 11:55:34 +03:00
Eriks Karls
95570b7c17 Article voting and endorsing 2019-08-27 11:03:08 +03:00
Eriks Karls
bc4ba671d6 Endpoint method names renamed to better represent urls 2019-08-27 11:02:52 +03:00
Eriks Karls
088219a60a Endpoint method names renamed to better represent urls 2019-08-27 10:51:57 +03:00
Eriks Karls
0d208a8d32 Add timezone to datetime serialization 2019-08-26 10:05:52 +03:00
Eriks Karls
86004eb81b Don't serialize password nor email 2019-08-26 10:05:22 +03:00
Eriks Karls
7e05e35ebf More verbose Object representation in json format 2019-08-26 09:47:04 +03:00
Eriks Karls
411b158487 Citizen.buy_food() now buys 48h worth of food
When doing WAM and fialing because not enough food - buy food
Integrated new RW side chooser
2019-08-26 09:32:12 +03:00
Eriks Karls
324db2c136 Fix new division numbering 2019-08-24 10:27:31 +03:00
Eriks Karls
1c6b41e41b Inventory updates and booster usage updates 2019-08-24 10:03:52 +03:00
Eriks Karls
7ebba458cb Max time timezones 2019-08-12 14:19:52 +03:00
Eriks Karls
4f436292af Organisation account fetcher - UNSTABLE 2019-08-12 12:54:58 +03:00
Eriks Karls
66c53ef985 Typo 2019-08-11 01:44:45 +03:00
Eriks Karls
3fa7d097fe Found awards switch to ASCII friendlier multiplier char - ✕ -> x
Localize max div end time
2019-08-05 11:55:39 +03:00
Eriks Karls
7e56f01a38 Added gameTokensMarket endpoint 2019-08-05 10:13:48 +03:00
Eriks Karls
048ce798dd All battle div div containing dicts where reference to the same object 2019-08-01 17:23:24 +03:00
Eriks Karls
6bbc7a1f64 Typehinting and battle/war stuff - last battle, attackable regions if CP, etc 2019-08-01 15:05:44 +03:00