Commit Graph

219 Commits

Author SHA1 Message Date
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
eleksir
22cb7c9372 Restore good morning greet head part of message 2022-04-04 23:23:08 +03:00
eleksir
5022cb1f06 Add forgotten cerlcritic policy 2022-04-03 18:34:31 +03:00
eleksir
2209872a7b Fix admin command, use regex for complex command detection 2022-04-03 17:34:26 +03:00
eleksir
e140176c99 Check text length while detecting command 2022-04-03 16:53:07 +03:00
eleksir
3c8f79a19a Use regex while omittimg response to response on our new member greet 2022-04-03 16:40:10 +03:00
eleksir
c4c21127d8 more careful work with substr in BotLib.pm 2022-04-03 16:38:14 +03:00
eleksir
8d4bf1abd9 Use utf8-friendly space symbols chop operation in trim() 2022-04-03 16:36:56 +03:00
eleksir
5e5613ff82 Add list of used perlcritic modules 2022-04-03 16:06:11 +03:00
eleksir
8ce226f755 Более корректно работаем с substr() и задаём misc->answer явно 2022-03-27 20:08:57 +03:00
eleksir
3bbe325fc0 Also add !karma and !карма without trailing space 2022-03-27 18:10:23 +03:00
eleksir
e35e7065ad Set chatid explicitly to num for tgm msg 2022-03-27 16:15:18 +03:00
eleksir
6cd7c4091b Set userid and chatid explicitly to num for redis json msg 2022-03-26 09:49:30 +03:00
eleksir
6d8097d060 Hide !goodbye as bot api work not reliably 2022-03-08 21:27:52 +03:00
eleksir
b2d5512c84 Fix grammar, on simple toggle disable greet 2022-03-06 00:59:25 +03:00
eleksir
03a4a51a86 Add !admin goodbye command 2022-03-06 00:48:16 +03:00
eleksir
de2106b16b Add !admin greet command 2022-03-06 00:08:34 +03:00
eleksir
7e5fbba0d0 Add missing modules to cpanfile 2022-02-13 17:13:47 +03:00
eleksir
a9bb74b440 Perlcritic overhaul, apply to Teapot lib too 2022-02-12 17:50:23 +03:00
eleksir
e84241c340 Use JSON::PP explicitly rather than implicitly 2022-02-03 01:58:07 +03:00
eleksir
73258dce1c Fix canTalk() usage in sendChatAction() 2022-02-03 01:36:47 +03:00
eleksir
d1f7f3c230 Add missing use in RedisLib.pm and also fix usage of canTalk() there 2022-02-03 01:22:21 +03:00
eleksir
76f286c770 Fix error handling in canDeleteMessage 2022-02-03 00:40:42 +03:00
eleksir
cfe6f76627 Fix internal mechanics CanTalk() and replyMd() to work with external calls 2022-02-02 18:12:01 +03:00
eleksir
90828ccbf9 Fix perlcritic warning in TelegramBot.pm 2022-01-28 21:42:23 +03:00
eleksir
141536c32f Pin version in cpanfile 2022-01-28 21:41:40 +03:00
eleksir
22afd51e07 Do not use _brain in ChatPermissions.pm 2022-01-28 21:02:14 +03:00
eleksir
3eceeaf028 Now it is aleesa-telegram 2022-01-28 21:01:32 +03:00
eleksir
e135ef7d7c Deejay redis subs to RedisLib.pm, translate comments, small fixes 2022-01-28 20:11:00 +03:00
eleksir
731d707baa Remove duplicate code 2022-01-28 17:43:54 +03:00
eleksir
6840e6d5d0 Update README.md && README_RU.md 2022-01-28 17:32:31 +03:00
eleksir
ba14f6e619 Use all types of greet phrases to omit answer if newcommer respond to our greet with quotation 2022-01-28 17:21:16 +03:00
eleksir
00a82dd2cd Braindir with brains themselves moved to aleesa-craniac application 2022-01-28 16:27:28 +03:00
eleksir
6554879b19 In newcommer greeting treat space-char-only first_name or last_name as non-existing 2022-01-28 16:25:10 +03:00
eleksir
9a5b899a42 Fix coding style 2022-01-28 16:22:06 +03:00
eleksir
3a061078d4 Move Archeologist and Fisher to separate module 2022-01-08 02:43:37 +03:00
eleksir
ca946c7e7b Move web client and karma plugins to redis rails, remove unneeded data and perl modules 2022-01-06 04:13:38 +03:00
eleksir
c68f716cbb Try to move most of static commands to redis rails 2022-01-01 02:00:43 +03:00
eleksir
31e077c219 Add easter egg phrases in private and group conversations, fix previous addition of private phrases a bit 2021-12-25 15:44:36 +03:00
eleksir
ae553d8aa5 Update version in help message 2021-12-20 00:04:13 +03:00
eleksir
1d287f853f Move !ping to redis rails 2021-12-19 20:39:03 +03:00
eleksir
e74a3e46c1 Use main:: namespace to preserve telegram and redis context 2021-12-19 13:54:28 +03:00
eleksir
186b112eba Merge branch 'master' into redis 2021-12-19 12:19:01 +03:00
eleksir
f223ba04ae Extend weather command list, add !weather, !погода, !погадка, !погодка, also allow oboobs and obutts plugins in private conversation 2021-12-18 17:24:21 +03:00
eleksir
17bd260a45 Export proper function name in RedisLib.pm, fix typo in Cli.pm 2021-12-11 16:00:21 +03:00