Commit Graph
100 Commits
Author SHA1 Message Date
Vladimir Hodakov 87214a9973 Add GrStatsBot to permitted users, add Numb13 to donaters 2018-04-08 22:32:51 +04:00
Vladimir Hodakov d2f172c316 Fix debug message 2018-04-07 17:26:18 +04:00
Vladimir Hodakov fdcd53ffb3 Add strings.ToLower for bot username checking 2018-04-07 17:24:48 +04:00
Vladimir Hodakov f306c259b1 Add debug on ProtectChat sequence 2018-04-07 17:22:00 +04:00
Vladimir Hodakov 24e619a446 Add `/games_chat` command
This command will send user link to our games-enabled chat.
2018-04-04 21:58:57 +04:00
Vladimir Hodakov f67e652ae4 Add games chat
Games chat used to divide talks in Bastion from @gamee games and so on.
2018-04-04 21:33:30 +04:00
Vladimir Hodakov af525b207f Fix bot failure on profile update 2018-04-01 17:51:38 +04:00
Vladimir Hodakov d96f1e9004 Add error response on wrong profile parsing 2018-03-31 23:07:05 +04:00
Vladimir Hodakov 3ffeec4e54 Fix return check of ProtectChat function 2018-03-31 17:46:13 +04:00
Vladimir Hodakov e12cada4c4 Add debug to restrictions workflow 2018-03-31 17:44:12 +04:00
Vladimir Hodakov 8af3e5b03a Add debug to message sending commands 2018-03-31 17:39:58 +04:00
Vladimir Hodakov 06173451f6 Add private/group request debug messages 2018-03-31 17:34:24 +04:00
Vladimir Hodakov c4d146ba20 Add fixes and linter improvements to talkers package 2018-03-31 17:25:41 +04:00
Vladimir Hodakov 4abfc457ce Add return constants package, and common message sender functions
Trying to resolve as much as possible ``gometalinter`` issues.
2018-03-31 16:45:09 +04:00
Vladimir Hodakov 049fdd7235 Fix pokememes attack parsing in 10th grade profiles 2018-03-31 14:51:32 +04:00
Vladimir Hodakov 3db79300af Fix "is_active=127" error (maybe) 2018-03-31 10:16:52 +04:00
Vladimir Hodakov 3129566a1c Fix bot failure on 10th grade hands in profiles 2018-03-31 10:05:59 +04:00
Vladimir Hodakov dbaa85a517 Reflect latest game update
So, now we can handle 10th grade pokememes (and any two-digit grade pokememes in future).
Also, /best and /advice commands for 9th-level players respect new pokememes.
2018-03-31 09:16:32 +04:00
Vladimir Hodakov 93f2e7d818 Fix typo in last weapon ID 2018-03-31 08:39:28 +04:00
Vladimir Hodakov 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
Vladimir Hodakov 8d78ef37f1 Fix typos in FAQ (2) 2018-03-06 21:48:43 +04:00
Vladimir Hodakov ef16bdc218 Fix typos in FAQ 2018-03-06 21:41:38 +04:00
Vladimir Hodakov bf9f9c164e Add FAQ for users 2018-03-06 21:38:25 +04:00
Vladimir Hodakov 49eaa4a501 Add Lenorag to donaters list 2018-03-05 09:29:41 +04:00
Vladimir Hodakov 93cd8028f4 Add @nokio404 to donaters list 2018-03-01 12:24:52 +04:00
Vladimir Hodakov f6b9671539 Remove amounts of donate by vanushinvi request 2018-03-01 11:39:28 +04:00
Vladimir Hodakov 72eafc9992 Fix typo in last donate 2018-03-01 11:35:40 +04:00
Vladimir Hodakov 1f30d9a1dd Fix typo in /help 2018-03-01 11:33:18 +04:00
Vladimir Hodakov e907f697c1 Add donate information to /help 2018-03-01 11:31:39 +04:00
Vladimir Hodakov 48679e85eb Fix error, when user tries to print it's profile without weapon 2018-02-20 22:58:13 +04:00
Vladimir Hodakov 6a681669ab Fix for column count in pokememes 2018-02-17 20:54:00 +04:00
Vladimir Hodakov 54614bfc4d Pokedex sorting by letter, for moving zero grade to end of the list 2018-02-17 19:54:45 +04:00
Vladimir Hodakov be9b2d72f1 Archive pokememes 2018-02-17 19:47:22 +04:00
Vladimir Hodakov 3a5411f814 Pokedeks sorting almost as in game: grade-attack-name 2018-02-17 18:26:33 +04:00
Vladimir Hodakov ffb9863bf7 Possibilities for all levels for academics 2018-02-17 18:17:09 +04:00
Vladimir Hodakov 8bd11d2494 Fixed typo and added more debug to squads DataCache 2018-02-17 17:27:30 +04:00
Vladimir Hodakov c4db462024 More debug on production due to strange errors 2018-02-17 17:23:49 +04:00
Vladimir Hodakov 5fda8af5fa Fix for squads relations 2018-02-17 17:22:08 +04:00
Vladimir Hodakov 2617375f46 Squad members from DataCache 2018-02-17 17:19:50 +04:00
Vladimir Hodakov 20b66480ef Debugging on production, I'm loving it! 2018-02-17 17:07:25 +04:00
Vladimir Hodakov 7b144a42af Disabling levels filter for commanders 2018-02-17 16:46:04 +04:00
Vladimir Hodakov ce553aea58 Squads: invite link on addition
Hope it works.
2018-02-17 16:37:06 +04:00
Vladimir Hodakov 5e4ce71ff8 Fixing chats DataCache 2018-02-17 16:25:50 +04:00
Vladimir Hodakov 2466a723be Updating chat name in DataCache 2018-02-17 16:01:05 +04:00
Vladimir Hodakov bf7eec791a Fix for latest update time in /find_user commands 2018-02-17 15:55:28 +04:00
Vladimir Hodakov fef521e35b Squads and chats in DataCache, squads rework
Work in progress, bugs may vary
2018-02-17 07:03:58 +04:00
Vladimir Hodakov 7af54a1b02 Added filter for disabling banned users from /send_league 2018-02-16 12:26:04 +04:00
Vladimir Hodakov 05dee41421 Added new MIT license 2018-02-14 02:40:52 +04:00
Vladimir Hodakov 7cdb74ac36 Updating current pokememes via Telegram 2018-02-14 00:09:58 +04:00
Vladimir Hodakov 3be6ddd8a8 Valentine label fix [2] 2018-02-13 23:14:14 +04:00
Vladimir Hodakov 5da61b460b Valentine label fix 2018-02-13 23:10:26 +04:00
Vladimir Hodakov 1370ab2b91 Yet another remote change
Now: source.wtfteam.pro
2018-02-13 22:05:32 +04:00
Vladimir Hodakov 2bf96eb6a9 Game update: pokedex size 2018-02-13 21:49:23 +04:00
Vladimir Hodakov 4660d02a32 Added "banned" status for players 2018-02-11 18:58:41 +04:00
Vladimir Hodakov 7368c58e2d Adding multiple cummands for listing filtered and unfiltered pokememes 2018-02-07 15:59:28 +04:00
Vladimir Hodakov 14413b3167 /advice command for searching most valuable pokememes 2018-02-07 15:00:04 +04:00
Vladimir Hodakov c7a8fcf6de So, /best in new way is back 2018-02-07 14:37:50 +04:00
Vladimir Hodakov bacf76fd39 Reverted /best logic, because of fuckup 2018-02-07 14:05:08 +04:00
Vladimir Hodakov 292440f411 Version 0.7.0. Added links to support chat 2018-02-07 13:46:14 +04:00
Vladimir Hodakov 5a746b524b /best pokememes are now filtered by defence and purchaseability 2018-02-07 13:39:34 +04:00
Vladimir Hodakov 56987f001a Fixing error with chats statistics 2018-02-06 13:53:19 +04:00
Vladimir Hodakov feb1899992 /find_top_attack for selecting users by top position 2018-02-05 13:00:18 +04:00
Vladimir Hodakov 6dac398fd3 /top and /top_my functions 2018-02-05 12:37:46 +04:00
Vladimir Hodakov 526304294c Typo fix 2018-02-04 04:28:16 +04:00
Vladimir Hodakov 38416b3902 Fixing endpoint for setWebhook 2018-01-31 00:17:59 +04:00
Vladimir Hodakov 88e640d322 Moving from long polling to webhook-based updates 2018-01-31 00:10:10 +04:00
Vladimir Hodakov 5b13b6479a Fixed fuckup with broadcast author's name 2018-01-30 20:38:00 +04:00
Vladimir Hodakov f3110ab391 Telegram is weird. Trying to fix some strange errors. 2018-01-30 20:21:18 +04:00
Vladimir Hodakov 7e9e0e11ff Trying to parallelism 2018-01-30 18:56:37 +04:00
Vladimir Hodakov 7bcaca66aa Fix for non-finding weapons 2018-01-30 18:41:23 +04:00
Vladimir Hodakov 78c882347d Fixes for non-welcoming and non-creating new users 2018-01-30 08:28:13 +04:00
Vladimir Hodakov db919bd038 Possibilities in /best command 2018-01-30 02:26:47 +04:00
Vladimir Hodakov add06f90f4 /best command works for levels, where no upper pokememes exists 2018-01-30 00:55:14 +04:00
Vladimir Hodakov 4a90e0ffd7 Returned duplicate pokememe error 2018-01-30 00:03:02 +04:00
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