Commit Graph
83 Commits
Author SHA1 Message Date
Vladimir Hodakov 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
Vladimir Hodakov 074fc4a1e3 Final fix for forgotten SQL filter 2018-01-24 12:20:00 +04:00
Vladimir Hodakov 9e6eb11bfd Fixed forgotten parameter in SQL query 2018-01-24 12:11:10 +04:00
Vladimir Hodakov b7379013a8 Explicit error message for profile posting with enabled artifacts 2018-01-23 20:50:21 +04:00
Vladimir Hodakov c5d8590b87 Removed trailing 1 from profiles attack 2018-01-23 20:37:48 +04:00
Vladimir Hodakov 7780fb4f00 Message split for found users (bypassing Telegram limitations) 2018-01-23 20:19:09 +04:00
Vladimir Hodakov 6a57d8581c Command to find users on level 2018-01-23 20:13:16 +04:00
Vladimir Hodakov 190cdc6e7b Migration to new git server 2018-01-21 23:28:53 +04:00
Vladimir Hodakov 880810d90c New Year 2018 preparations 2017-12-28 05:57:51 +04:00
Vladimir Hodakov bbb0b8afe1 Less restrictive policies for admins 2017-12-24 04:36:23 +04:00
Vladimir Hodakov f6d8d064ed PokememBroInstinkt chat bans fix 2017-12-23 21:08:57 +04:00
Vladimir Hodakov 24e4904807 /find_user moved to custom SQL query
Now it's much, MUCH faster.
2017-12-23 18:49:09 +04:00
Vladimir Hodakov 9a10a6884b Broadcaster send markup fix 2017-12-23 17:33:38 +04:00
Vladimir Hodakov 5afe064b54 Orders are now respect Academy as another chat 0. 2017-12-23 17:09:18 +04:00
Vladimir Hodakov b7ca6b3c6a New restrictions logic for all chats. Fixed filter for /send_league 2017-12-23 17:03:26 +04:00
Vladimir Hodakov 2bcb89f74a Reminders message update with less waiting
It will update in one step, not in two
2017-12-23 01:56:18 +04:00
Vladimir Hodakov 706dc3e944 Reminders for league. Now just reminders, without attack button 2017-12-23 01:40:36 +04:00
Vladimir Hodakov a2e70332de Fix various issues on locations and leagues view 2017-12-22 22:20:52 +04:00
Vladimir Hodakov 413bf22f16 Visual fixes in broadcast messages, some fixes in squader
He protec, but he also attac!
2017-12-20 21:45:32 +04:00
Vladimir Hodakov 49fd750df9 Float fix for pokememes wealth 2017-12-06 14:43:05 +04:00
Vladimir Hodakov 2e42ccf011 Special message for those which IQ < 90 2017-12-06 14:03:04 +04:00
Vladimir Hodakov fa71616a14 Pokememe deletion command 2017-12-04 23:14:41 +04:00
Vladimir Hodakov 8af37b6c34 Typo fix 2017-12-04 21:15:39 +04:00
Vladimir Hodakov fa5625e2c8 Welcome message for common chat fix 2017-12-04 21:06:15 +04:00
Vladimir Hodakov 1fecbd96ff Five pokeballs offer 2017-12-03 14:37:54 +04:00
Vladimir Hodakov dfda32396a Pinner fix for lost spaces 2017-12-03 00:40:30 +04:00
Vladimir Hodakov 4d941454b5 /academy and /bastion: some error messages 2017-12-02 20:02:27 +04:00
Vladimir Hodakov 050c0f8d0b /academy and /bastion commands 2017-12-02 19:50:56 +04:00
Vladimir Hodakov 010a2395bf Fix for low-level: pokememes with same name can be added to hand 2017-12-02 18:25:24 +04:00
Vladimir Hodakov 68c5852ee5 Some personalization in easter eggs. 2017-12-02 13:54:13 +04:00
Vladimir Hodakov 8a11a356a3 Some easter eggs. Ability to find user by name or nickname. 2017-12-02 13:45:24 +04:00
Vladimir Hodakov 703ea27cdb Academic access level, can see other profiles 2017-12-01 10:55:18 +04:00
Vladimir Hodakov da8fe3f3e8 /best for low-levels shows all pokememes of next grade 2017-11-29 19:59:51 +04:00
Vladimir Hodakov 099898d991 Dirty hack for academy 2017-11-29 19:28:40 +04:00
Vladimir Hodakov c65dad7727 Wiper for Bastion 2017-11-29 19:11:52 +04:00
Vladimir Hodakov 0aa26c1cfa Latest bugfixes and updates 2017-11-29 18:54:13 +04:00
Vladimir Hodakov 4f4ff8ae7b Pinner fix for /pin spaces 2017-11-29 17:34:07 +04:00
Vladimir Hodakov 6987041d77 Ban returned 2017-11-29 17:06:14 +04:00
Vladimir Hodakov 338268e32f Weird typo fix 2017-11-29 16:36:06 +04:00
Vladimir Hodakov 2421e2d6d2 /users pages navigation 2017-11-29 14:38:58 +04:00
Vladimir Hodakov 4d7f545c92 Ban politic lifted for a while 2017-11-29 12:19:30 +04:00
Vladimir Hodakov 184055e2f8 Kick mechanism change 2017-11-29 12:12:34 +04:00
Vladimir Hodakov 7ecc73cbc3 Ban and kick for Bastion separated, and added notifications 2017-11-29 11:50:14 +04:00
Vladimir Hodakov b706c2d895 Academy link in profile success message for newbies 2017-11-29 10:36:36 +04:00
Vladimir Hodakov f52920334d Bastion link on proper profile update 2017-11-29 10:04:54 +04:00
Vladimir Hodakov 0bc1b76352 New welcome message for default group 2017-11-29 09:57:11 +04:00
Vladimir Hodakov 9d21ebd44b Pass game admins to our chats. Easter egg chance generation. 2017-11-28 20:37:14 +04:00
Vladimir Hodakov 200a7d14ea Latest update to pokedexer for new pokememes 2017-11-27 11:11:48 +04:00
Vladimir Hodakov b57cacb4d4 Latest game update reflections 2017-11-26 19:38:25 +04:00
Vladimir Hodakov 7803242588 Bastion chat is covered by orders now 2017-11-26 17:44:41 +04:00
Vladimir Hodakov e9a1642521 Bastion protection system 2017-11-26 17:28:26 +04:00
Vladimir Hodakov ca147a99a3 Three special chats in config 2017-11-26 16:54:06 +04:00
Vladimir Hodakov a0bfc6b32f Another dumb typo fix
Starting in production day in a nutshell, yeah :D
2017-11-26 16:36:35 +04:00
Vladimir Hodakov 8d186b1dba Special user in squad information 2017-11-26 16:17:21 +04:00
Vladimir Hodakov 63051eb9b9 Special case for adding special user to squad 2017-11-26 16:12:49 +04:00
Vladimir Hodakov 60365e1637 Special profile signature in /users list 2017-11-26 16:03:31 +04:00
Vladimir Hodakov 60bf806b50 /chats command formatting fix 2017-11-26 15:54:05 +04:00
Vladimir Hodakov 62de77d552 "На слубже", my ass! Typo fix 2017-11-26 15:49:11 +04:00
Vladimir Hodakov 0025493636 Bot welcome message fix for self-welcomes 2017-11-26 15:45:55 +04:00
Vladimir Hodakov 53a99b0ff3 Some work on ordering. Special user behaviour
See #10
2017-11-26 15:28:55 +04:00
Vladimir Hodakov 8368a3c60b Pins to selected chats
Closes #6
2017-11-26 08:31:56 +04:00
Vladimir Hodakov a6811f61fc Inline commands support (needed for pins handling) 2017-11-26 07:55:13 +04:00
Vladimir Hodakov fed4a52075 Bot administration functions for squads chats
Closes #11
Closes #15
2017-11-26 06:48:13 +04:00
Vladimir Hodakov 130aabda81 Fixed error with underscores in usernames 2017-11-25 03:44:58 +04:00
Vladimir Hodakov ac0292ab6f Broadcast message to all Instinkt players
Closes #7
2017-11-25 03:00:34 +04:00
Vladimir Hodakov b038d5b10d Pin to all squads at :55 of every even hour
Closes #9
2017-11-24 13:24:36 +04:00
Vladimir Hodakov a32ed89be8 User addition to squads
Closes #8
2017-11-24 00:16:22 +04:00
Vladimir Hodakov ef9ba0310c Using flagger for config path getting
So, now we can deploy via go get and handle config in separate folder.
2017-11-22 16:32:10 +04:00
Vladimir Hodakov dfe0d08ecc Massive refactoring for future development 2017-11-21 06:06:32 +04:00
Vladimir Hodakov f5d801b768 .gitignore changes to ignore log files 2017-11-21 04:27:29 +04:00
Vladimir Hodakov e4102e9a90 Work on squads, some refactoring
Closes #14
See #8
2017-11-19 22:16:11 +04:00
Vladimir Hodakov 95a9a2146a Pins to supergroups, managed by admins 2017-11-14 03:44:21 +04:00
Vladimir Hodakov 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
Vladimir Hodakov 76b6245b8e Specs moved to issue tracker 2017-11-03 22:09:29 +04:00
Vladimir Hodakov c998698b7a Welcome requests in groups, based on profiles and leagues 2017-11-03 21:33:02 +04:00
Vladimir Hodakov 82f6ecd8f9 Removed `dependencies.sh`. 2017-10-26 18:20:50 +04:00
Vladimir Hodakov e97b3caf07 Dependency management via dep package. 2017-10-26 18:17:58 +04:00
Vladimir Hodakov c676fb780d Broadcast messages are now stored in database 2017-10-22 15:29:48 +04:00
Vladimir Hodakov 7975ea54c1 /send_all feature for administrators 2017-10-22 14:04:14 +04:00
Vladimir Hodakov 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
Vladimir Hodakov c99648b72a Chats saving to database 2017-10-21 14:14:46 +04:00
Vladimir Hodakov 8dab6c0699 Refactoring: now we respect gofmt and have some comments 2017-10-18 09:39:50 +04:00
Vladimir Hodakov 6f374e560e All code formatted with gofmt 2017-10-18 07:03:34 +04:00