Commit Graph

263 Commits

Author SHA1 Message Date
eleksir
8eb83ac2b8 Update internal version number of Teapot lib 2023-04-16 17:03:39 +03:00
eleksir
df3c198bce Add general support for BotAPI v6.6 2023-04-16 16:58:59 +03:00
eleksir
f019b98b1f Add partial BotAPI v6.5 support 2023-04-16 16:31:12 +03:00
eleksir
ecf4f94dca Add general support for BotAPI v6.4 2023-04-16 16:03:38 +03:00
eleksir
cea6920d78 Change loglevel for known errors to notice while handling sendMessage errors 2023-01-14 20:52:03 +03:00
eleksir
d4d830715b Add comments fo couple of fields in banChatMember method 2023-01-14 20:50:02 +03:00
eleksir
be5c654045 Rework BotAPI error handling, this time it looks kinda working, still wip, though 2023-01-07 17:19:16 +03:00
eleksir
5edf5a7e0c Fine tune GET polling requests timings, update Teapot lib pod-docs, bump Teapot lib version where missed last time 2023-01-07 16:56:56 +03:00
eleksir
780ec4fe29 Correctly handle successful response from banChatMember and restrictChatMember in BotLib.pm 2023-01-07 16:53:47 +03:00
eleksir
fc56f99433 Try to catch and log as most Bot API errors as we can in BotLib.pm 2023-01-02 21:27:34 +03:00
eleksir
5b93e43280 Only creator can toggle admin mute 2023-01-02 19:54:22 +03:00
eleksir
c5b4d1c866 Try to catch and log as most Bot API errors as we can in TelegramBot.pm 2023-01-02 19:34:38 +03:00
eleksir
5a5e4b5ead 5/5 Fix formatting in TelegramBot.pm 2023-01-02 19:21:19 +03:00
eleksir
e8765c0e88 4/5 Try to handle errors on sending message in RedisLib.pm 2023-01-02 19:20:31 +03:00
eleksir
3dc75936ea 3/5 Allow to enable mute-by-command not only to creator of chat 2023-01-02 19:08:02 +03:00
eleksir
1f3675de8f 2/5 Lift up error to caller in Teapot lib, introduce can_talk() in Brain.pm 2023-01-02 19:06:02 +03:00
eleksir
3668620bd8 1/5 Fix formatting in bin/aleesa-telegram 2023-01-02 19:04:28 +03:00
eleksir
5411d6df7f Fix fetching error message 2022-12-15 02:21:17 +03:00
eleksir
f6a5a05e58 Disable chat in morning greet list if chat id is not found 2022-12-15 02:19:01 +03:00
eleksir
6e084995a7 Use proper functions to check state of services in migration 2022-12-15 02:03:02 +03:00
eleksir
43c08e156f Return only if migration performed 2022-12-12 17:31:18 +03:00
eleksir
b84f8bb245 Move IsCensored to Admin.pm 2022-12-12 17:26:50 +03:00
eleksir
d43cb5995b Add settings migration when group -> supergroup promotion event discovered 2022-12-12 17:10:02 +03:00
eleksir
7d74a86dad In channel context Hightlight() is pointless 2022-12-12 15:19:41 +03:00
eleksir
d539c8c9cf DeeJay utility functions to Util.pm 2022-12-12 13:32:44 +03:00
eleksir
bd9f66930b In _post_request() try to catch error message as raw and return it to upper layer 2022-12-12 12:41:54 +03:00
eleksir
9618369a45 Add debug for api errors 2022-11-26 14:22:11 +03:00
eleksir
770fce4cfe Update dependencies 2022-11-26 14:16:19 +03:00
eleksir
80d9aeca20 Add fuck command 2022-11-26 14:02:52 +03:00
eleksir
548c0b3655 Fix logic in GreetMsgToggle() 2022-11-07 00:57:09 +03:00
eleksir
b4e6685213 Add support for Bot API 6.3 2022-11-06 22:08:02 +03:00
eleksir
f9658ac5e8 Actually add admin mute command 2022-10-09 02:06:54 +03:00
eleksir
3a75f4c947 Rename admin mute command because it actually bans chat prticipants 2022-10-09 00:47:38 +03:00
eleksir
58128bdbdb Add utility script 2022-05-13 18:06:21 +03:00
eleksir
bec963c7b3 Allow to parse any json-file as loosely formatted (not only config.json) 2022-05-13 18:05:15 +03:00
eleksir
b2af26d4e6 Ratelimit good morning greet 2022-05-13 11:50:41 +03:00
eleksir
2708d84d8a Properly set loglevel if it omitted in config 2022-05-13 11:49:22 +03:00
eleksir
508b749dff Fix 'open' module version, it is hardwired to perl distribution 2022-05-13 11:47:02 +03:00
eleksir
cefdec95c4 Forgot to sed /voice/video/g in message.pm 2022-05-01 11:50:00 +03:00
eleksir
35104f883c Take into account possible api errors 2022-04-24 01:13:36 +03:00
eleksir
281a5e6b3c Remove excessive debug, fix message format
* Remove duplicate debug for outgoing redis message
* Add log category for outgoing debug redis message
* Add missing field in outgoing redis message
2022-04-24 01:00:06 +03:00
eleksir
060244a84d Cleanup and update sample config 2022-04-24 00:54:23 +03:00
eleksir
1958f77e9c Also dump redis messages on debug loglevel 2022-04-23 14:48:34 +03:00
eleksir
93032dd35e Bump version of Mojolicious 9.22 -> 9.24 2022-04-23 14:35:59 +03:00
eleksir
8fd6fc1c10 Implement command !admin mute 2022-04-23 14:13:22 +03:00
eleksir
cb069ace15 Chatid must be non zero value 2022-04-23 14:12:28 +03:00
eleksir
33ab2a368d More strict check of redis message json format 2022-04-18 23:19:19 +03:00
eleksir
391b9889cf Add a bit of debug to RedisLib.pm 2022-04-16 20:03:12 +03:00
eleksir
216a139c18 Update Teapot lib to comply with api v5.6, v5.7, v6.0 2022-04-16 19:51:26 +03:00
eleksir
305550f6cf Set json types in more obvious fashion 2022-04-10 00:35:45 +03:00