Archived
1
Commit Graph

23 Commits

Author SHA1 Message Date
0a5361ee09 Add karma field to players
Karma will be used for inactive users filtering
2018-05-05 09:50:07 +04:00
86afa52a56 Format imports with goimport 2018-05-02 07:25:39 +04:00
a9f1d25c7b Add pokememes info, convert it to new format and drop unnecessary database tables
This commit introduces pokememes information storage in source code (because they're rarely changed and I always update them manually).

All information about pokememes updated after nerf of 25 April. Also, added buttons to /pokedeks command for changing pages (there are 21 pages already!), and limited one page to 35 pokememes.
2018-05-02 00:47:55 +04:00
c9855116da Move rarely changed data to datamappings, fix profile updating
As result of profile format change, introduced in game update yesterday we need to change profile regexp.

As result of some refactoring, rarely changed data removed from database and added to sources of bot.
2018-03-31 08:34:27 +04:00
be9b2d72f1 Archive pokememes 2018-02-17 19:47:22 +04:00
fef521e35b Squads and chats in DataCache, squads rework
Work in progress, bugs may vary
2018-02-17 07:03:58 +04:00
6dac398fd3 /top and /top_my functions 2018-02-05 12:37:46 +04:00
b8226d8aa8 DataCache and changes for game update
Recent game update changed pokememes view in pokedeks, so we need to
reflect it by updating parser.

Introducing DataCache - a silver bullet for eliminating lags linked to
database queries. Less queries, more in RAM, faster work. Needs testing
in production environment.
2018-01-29 23:50:25 +04:00
24e4904807 /find_user moved to custom SQL query
Now it's much, MUCH faster.
2017-12-23 18:49:09 +04:00
706dc3e944 Reminders for league. Now just reminders, without attack button 2017-12-23 01:40:36 +04:00
b57cacb4d4 Latest game update reflections 2017-11-26 19:38:25 +04:00
53a99b0ff3 Some work on ordering. Special user behaviour
See #10
2017-11-26 15:28:55 +04:00
a32ed89be8 User addition to squads
Closes #8
2017-11-24 00:16:22 +04:00
e4102e9a90 Work on squads, some refactoring
Closes #14
See #8
2017-11-19 22:16:11 +04:00
95a9a2146a Pins to supergroups, managed by admins 2017-11-14 03:44:21 +04:00
5c08899d25 Work on squads, alerts on new user with empty or spy profile
Closes #1
Closes #2
2017-11-13 22:51:50 +04:00
c998698b7a Welcome requests in groups, based on profiles and leagues 2017-11-03 21:33:02 +04:00
c676fb780d Broadcast messages are now stored in database 2017-10-22 15:29:48 +04:00
88c9853c77 Latest game update reflections
Added ``pokememes_wealth`` in profiles, because we now can retrieve it
from profiles.
Removed ``pokememe_lvl`` from profile pokememes due to latest game
update, where level calculating become almost impossible (or hard enough
to throw it away).
Added ``pokememe_attack`` for profile pokememes, which will be used
instead of level.
2017-10-22 13:13:20 +04:00
c99648b72a Chats saving to database 2017-10-21 14:14:46 +04:00
8dab6c0699 Refactoring: now we respect gofmt and have some comments 2017-10-18 09:39:50 +04:00
6f374e560e All code formatted with gofmt 2017-10-18 07:03:34 +04:00
Vladimir Hodakov
ef924d26c7 Pokememes possibilities, some refactoring 2017-10-13 03:05:26 +04:00