Commit Graph

47 Commits

Author SHA1 Message Date
eleksir
7904957aaa Implement commands w п weather погода погодка погадка without arguments 2025-02-09 14:51:10 +03:00
eleksir
132ebeffa4 Fix crash on condition check in !admin {obutts,oboobs} # command 2024-10-25 09:44:37 +03:00
eleksir
4f9675f1d2 Import JSON::PP explicitly in lib/BotLib.pm 2024-08-22 21:44:09 +03:00
eleksir
6a4c2bd076 Add command пословиться 2023-05-19 00:16:14 +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
3dc75936ea 3/5 Allow to enable mute-by-command not only to creator of chat 2023-01-02 19:08:02 +03:00
eleksir
d539c8c9cf DeeJay utility functions to Util.pm 2022-12-12 13:32:44 +03:00
eleksir
80d9aeca20 Add fuck command 2022-11-26 14:02:52 +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
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
1958f77e9c Also dump redis messages on debug loglevel 2022-04-23 14:48:34 +03:00
eleksir
8fd6fc1c10 Implement command !admin mute 2022-04-23 14:13:22 +03:00
eleksir
33ab2a368d More strict check of redis message json format 2022-04-18 23:19:19 +03:00
eleksir
305550f6cf Set json types in more obvious fashion 2022-04-10 00:35:45 +03:00
eleksir
2209872a7b Fix admin command, use regex for complex command detection 2022-04-03 17:34:26 +03:00
eleksir
c4c21127d8 more careful work with substr in BotLib.pm 2022-04-03 16:38:14 +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
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
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
a9bb74b440 Perlcritic overhaul, apply to Teapot lib too 2022-02-12 17:50:23 +03:00
eleksir
e135ef7d7c Deejay redis subs to RedisLib.pm, translate comments, small fixes 2022-01-28 20:11:00 +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
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
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
71a2471725 Couple of grammar and coding style mistakes fixes here and there 2021-12-04 03:10:41 +03:00
eleksir
1abb95622a Fix bunch of grammar mistakes 2021-10-17 01:14:38 +03:00
eleksir
bb399a5051 Add undocumented commands !kde and !кде 2021-10-12 10:54:30 +03:00
eleksir
2134edd841 Implemented !proverb and !пословица commands 2021-08-11 16:54:21 +03:00
eleksir
3dd565c658 Implemented !coin !монетка !roll !dies !кости commands 2021-08-11 13:19:56 +03:00
eleksir
7147b785e7 Add !anek !анек !анекдот commands 2021-07-29 21:26:59 +03:00
eleksir
6d439a1b44 Implement !horse !лошадка !frog !лягушка !snail !улитка commands 2021-05-06 11:00:44 +03:00
eleksir
096877bee2 Make logging use features of Log::Any and log as it should be done via this module. Cleanup sample config. 2021-05-04 18:45:30 +03:00
eleksir
095cb57a18 Implemented !хелп, !хэлп, answer 'кто все эти люди?' question, hide notext log message to debug lever 2021-05-04 13:30:11 +03:00
eleksir
fbab0a4d88 1-st run fixes after refactor 2021-04-24 16:12:30 +03:00
eleksir
8665a6ddda Refactor some parts of bot
- Move most modules to subdirs
- Rename functions according perlcritic guidelines
- Fix and add some bugs
2021-04-22 17:36:50 +03:00