Commit Graph

  • 65a3382bb0 Do not manipulate lib path directly. master eleksir 2026-01-02 16:16:17 +03:00
  • 8f6ccfba04 Add export_settings.pl to save chat settings in json eleksir 2026-01-02 15:54:23 +03:00
  • 2d0ad8560d Enhance logging, disable autoban spammers eleksir 2025-05-19 22:08:26 +03:00
  • c24644b10e Ban spammers in slackware_ru chat automatically eleksir 2025-05-10 00:44:31 +03:00
  • f97557868b User sendMessage directly via global object, without sugar eleksir 2025-05-09 16:19:49 +03:00
  • b024d5f13a Do not send "Typing" as it cause errors, replace it with sleep. eleksir 2025-05-09 11:59:18 +03:00
  • bc270457a4 Use correct fields for last_name and user id in updated member event (when new user joins) eleksir 2025-05-08 21:16:29 +03:00
  • ba4ff36daf Solve myterious riddle with users some sneaking unnoted by bot, which is a bummer! eleksir 2025-05-08 17:51:41 +03:00
  • ec59703000 Fix reaction username in logs eleksir 2025-05-08 17:27:52 +03:00
  • 59a1a3538b I have nothing to do with chat reactions, so log it and skip eleksir 2025-05-08 17:20:50 +03:00
  • 6e76d85899 Add quirk for api incosistency in reactions eleksir 2025-05-08 17:01:15 +03:00
  • d21bab68ef Make proper use of Reaction stuff in Teapot lib eleksir 2025-05-08 15:49:25 +03:00
  • 408dccd1b5 Fix variable name in Brain.pm that explodes bot eleksir 2025-05-08 15:06:12 +03:00
  • a568c6f146 Do not include in repo data/Admin directory eleksir 2025-05-08 15:03:45 +03:00
  • 5448c9bfdb Add type Reaction eleksir 2025-05-08 14:56:25 +03:00
  • da182ae62f Do not call logOut() since we have no webhooks and for faster restarts. eleksir 2025-04-27 13:07:15 +03:00
  • 82df563f40 Add list of allowed updates explicitly, add Close() method for telegram connection eleksir 2025-04-27 13:05:31 +03:00
  • 7bd0c3428f Set explicitly ["chat_member","message_reaction","message_reaction_count"] as additional updates i want to receive eleksir 2025-04-24 21:55:15 +03:00
  • 7904957aaa Implement commands w п weather погода погодка погадка without arguments eleksir 2025-02-09 14:51:10 +03:00
  • 132ebeffa4 Fix crash on condition check in !admin {obutts,oboobs} # command eleksir 2024-10-25 09:44:37 +03:00
  • 4f9675f1d2 Import JSON::PP explicitly in lib/BotLib.pm eleksir 2024-08-22 21:44:09 +03:00
  • 1667772268 Make use of logOut() method eleksir 2024-08-22 21:42:58 +03:00
  • ebaf2c9b38 Add logOut() method to Teapot lib eleksir 2024-08-22 21:29:49 +03:00
  • b9c88ad4e7 Dump SendMessage() error only if we not handle it properly eleksir 2023-08-29 17:28:35 -07:00
  • 6a4c2bd076 Add command пословиться eleksir 2023-05-19 00:16:14 +03:00
  • 2f9b79d77d Add missing semicolon in Teapot/Bot/Object/Chat.pm eleksir 2023-04-16 17:06:33 +03:00
  • 8eb83ac2b8 Update internal version number of Teapot lib eleksir 2023-04-16 17:03:39 +03:00
  • df3c198bce Add general support for BotAPI v6.6 eleksir 2023-04-16 16:58:59 +03:00
  • f019b98b1f Add partial BotAPI v6.5 support eleksir 2023-04-16 16:31:12 +03:00
  • ecf4f94dca Add general support for BotAPI v6.4 eleksir 2023-04-16 16:00:36 +03:00
  • cea6920d78 Change loglevel for known errors to notice while handling sendMessage errors eleksir 2023-01-14 20:52:03 +03:00
  • d4d830715b Add comments fo couple of fields in banChatMember method eleksir 2023-01-14 20:50:02 +03:00
  • be5c654045 Rework BotAPI error handling, this time it looks kinda working, still wip, though eleksir 2023-01-07 17:18:35 +03:00
  • 5edf5a7e0c Fine tune GET polling requests timings, update Teapot lib pod-docs, bump Teapot lib version where missed last time eleksir 2023-01-07 16:56:56 +03:00
  • 780ec4fe29 Correctly handle successful response from banChatMember and restrictChatMember in BotLib.pm eleksir 2023-01-07 16:53:47 +03:00
  • fc56f99433 Try to catch and log as most Bot API errors as we can in BotLib.pm eleksir 2023-01-02 21:25:18 +03:00
  • 5b93e43280 Only creator can toggle admin mute eleksir 2023-01-02 19:54:22 +03:00
  • c5b4d1c866 Try to catch and log as most Bot API errors as we can in TelegramBot.pm eleksir 2023-01-02 19:34:38 +03:00
  • 5a5e4b5ead 5/5 Fix formatting in TelegramBot.pm eleksir 2023-01-02 19:21:19 +03:00
  • e8765c0e88 4/5 Try to handle errors on sending message in RedisLib.pm eleksir 2023-01-02 19:20:31 +03:00
  • 3dc75936ea 3/5 Allow to enable mute-by-command not only to creator of chat eleksir 2023-01-02 19:08:02 +03:00
  • 1f3675de8f 2/5 Lift up error to caller in Teapot lib, introduce can_talk() in Brain.pm eleksir 2023-01-02 19:06:02 +03:00
  • 3668620bd8 1/5 Fix formatting in bin/aleesa-telegram eleksir 2023-01-02 19:04:28 +03:00
  • 5411d6df7f Fix fetching error message eleksir 2022-12-15 02:21:17 +03:00
  • f6a5a05e58 Disable chat in morning greet list if chat id is not found eleksir 2022-12-15 02:19:01 +03:00
  • 6e084995a7 Use proper functions to check state of services in migration eleksir 2022-12-15 02:03:02 +03:00
  • 43c08e156f Return only if migration performed eleksir 2022-12-12 17:31:18 +03:00
  • b84f8bb245 Move IsCensored to Admin.pm eleksir 2022-12-12 17:26:50 +03:00
  • d43cb5995b Add settings migration when group -> supergroup promotion event discovered eleksir 2022-12-12 17:10:02 +03:00
  • 7d74a86dad In channel context Hightlight() is pointless eleksir 2022-12-12 15:19:41 +03:00
  • d539c8c9cf DeeJay utility functions to Util.pm eleksir 2022-12-12 13:32:44 +03:00
  • bd9f66930b In _post_request() try to catch error message as raw and return it to upper layer eleksir 2022-12-12 12:41:54 +03:00
  • 9618369a45 Add debug for api errors eleksir 2022-11-26 14:22:11 +03:00
  • 770fce4cfe Update dependencies eleksir 2022-11-26 14:16:19 +03:00
  • 80d9aeca20 Add fuck command eleksir 2022-11-26 14:02:52 +03:00
  • 548c0b3655 Fix logic in GreetMsgToggle() eleksir 2022-11-07 00:57:09 +03:00
  • b4e6685213 Add support for Bot API 6.3 eleksir 2022-11-06 22:08:02 +03:00
  • f9658ac5e8 Actually add admin mute command eleksir 2022-10-09 02:06:54 +03:00
  • 3a75f4c947 Rename admin mute command because it actually bans chat prticipants eleksir 2022-10-09 00:47:38 +03:00
  • 58128bdbdb Add utility script eleksir 2022-05-13 18:06:21 +03:00
  • bec963c7b3 Allow to parse any json-file as loosely formatted (not only config.json) eleksir 2022-05-13 18:05:15 +03:00
  • b2af26d4e6 Ratelimit good morning greet eleksir 2022-05-13 11:50:41 +03:00
  • 2708d84d8a Properly set loglevel if it omitted in config eleksir 2022-05-13 11:49:22 +03:00
  • 508b749dff Fix 'open' module version, it is hardwired to perl distribution eleksir 2022-05-13 11:46:39 +03:00
  • cefdec95c4 Forgot to sed /voice/video/g in message.pm eleksir 2022-05-01 11:50:00 +03:00
  • 35104f883c Take into account possible api errors eleksir 2022-04-24 01:13:36 +03:00
  • 281a5e6b3c Remove excessive debug, fix message format eleksir 2022-04-24 01:00:06 +03:00
  • 060244a84d Cleanup and update sample config eleksir 2022-04-24 00:54:23 +03:00
  • 1958f77e9c Also dump redis messages on debug loglevel eleksir 2022-04-23 14:38:06 +03:00
  • 93032dd35e Bump version of Mojolicious 9.22 -> 9.24 eleksir 2022-04-23 14:35:59 +03:00
  • 8fd6fc1c10 Implement command !admin mute eleksir 2022-04-23 14:13:22 +03:00
  • cb069ace15 Chatid must be non zero value eleksir 2022-04-23 14:12:28 +03:00
  • 33ab2a368d More strict check of redis message json format eleksir 2022-04-18 23:19:19 +03:00
  • 391b9889cf Add a bit of debug to RedisLib.pm eleksir 2022-04-16 20:03:12 +03:00
  • 216a139c18 Update Teapot lib to comply with api v5.6, v5.7, v6.0 eleksir 2022-04-16 19:27:32 +03:00
  • 305550f6cf Set json types in more obvious fashion eleksir 2022-04-10 00:35:38 +03:00
  • 22cb7c9372 Restore good morning greet head part of message eleksir 2022-04-04 23:23:08 +03:00
  • 5022cb1f06 Add forgotten cerlcritic policy eleksir 2022-04-03 18:34:31 +03:00
  • 2209872a7b Fix admin command, use regex for complex command detection eleksir 2022-04-03 17:33:14 +03:00
  • e140176c99 Check text length while detecting command eleksir 2022-04-03 16:49:35 +03:00
  • 3c8f79a19a Use regex while omittimg response to response on our new member greet eleksir 2022-04-03 16:40:10 +03:00
  • c4c21127d8 more careful work with substr in BotLib.pm eleksir 2022-04-03 16:38:14 +03:00
  • 8d4bf1abd9 Use utf8-friendly space symbols chop operation in trim() eleksir 2022-04-03 16:36:56 +03:00
  • 5e5613ff82 Add list of used perlcritic modules eleksir 2022-04-03 16:06:11 +03:00
  • 8ce226f755 Более корректно работаем с substr() и задаём misc->answer явно eleksir 2022-03-27 20:08:57 +03:00
  • 3bbe325fc0 Also add !karma and !карма without trailing space eleksir 2022-03-27 18:10:23 +03:00
  • e35e7065ad Set chatid explicitly to num for tgm msg eleksir 2022-03-27 16:15:18 +03:00
  • 6cd7c4091b Set userid and chatid explicitly to num for redis json msg eleksir 2022-03-26 09:49:30 +03:00
  • 6d8097d060 Hide !goodbye as bot api work not reliably eleksir 2022-03-08 21:27:52 +03:00
  • b2d5512c84 Fix grammar, on simple toggle disable greet eleksir 2022-03-06 00:59:25 +03:00
  • 03a4a51a86 Add !admin goodbye command eleksir 2022-03-06 00:42:02 +03:00
  • de2106b16b Add !admin greet command eleksir 2022-03-06 00:08:34 +03:00
  • 7e5fbba0d0 Add missing modules to cpanfile eleksir 2022-02-13 16:58:15 +03:00
  • a9bb74b440 Perlcritic overhaul, apply to Teapot lib too eleksir 2022-02-12 17:31:09 +03:00
  • e84241c340 Use JSON::PP explicitly rather than implicitly eleksir 2022-02-03 01:58:07 +03:00
  • 73258dce1c Fix canTalk() usage in sendChatAction() eleksir 2022-02-03 01:36:47 +03:00
  • d1f7f3c230 Add missing use in RedisLib.pm and also fix usage of canTalk() there eleksir 2022-02-03 01:22:21 +03:00
  • 76f286c770 Fix error handling in canDeleteMessage eleksir 2022-02-03 00:40:42 +03:00
  • cfe6f76627 Fix internal mechanics CanTalk() and replyMd() to work with external calls eleksir 2022-02-02 17:30:33 +03:00
  • 90828ccbf9 Fix perlcritic warning in TelegramBot.pm eleksir 2022-01-28 21:42:23 +03:00