Commit Graph

226 Commits

Author SHA1 Message Date
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
22afd51e07 Do not use _brain in ChatPermissions.pm 2022-01-28 21:02:14 +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
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
eleksir
7cac72d5b9 Fixes for cli
Use correct path for working dir
Fix path for Conf.om
Use pubsub object instead of redis connection
2021-12-11 15:55:14 +03:00
eleksir
f33e05a91c Add test client for redis 2021-12-11 15:38:58 +03:00
eleksir
ab89105168 Add initial redis support 2021-12-11 13:57:23 +03:00
eleksir
8d35bb2452 Update api with fields from v5.4 and v5.5 2021-12-07 20:11:56 +03:00
eleksir
71a2471725 Couple of grammar and coding style mistakes fixes here and there 2021-12-04 03:10:41 +03:00
eleksir
e93c9f9131 Use different hello-phrases to greet newcommers 2021-12-03 20:25:51 +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
c5014a8f77 Weather.pm: Hardcode popular russian short city names 2021-10-01 13:23:00 +03:00
eleksir
f83a2d3436 Anek.pm: fix rare case when fetched response is unparsable 2021-08-16 00:03:38 +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
66f64da5c6 Fix incorrect error message when unable to create gamestatdir 2021-07-05 13:54:27 +03:00
eleksir
cf71cd7f6f Apply perlcritic 2021-07-03 11:20:13 +03:00
eleksir
eddbcc6277 Prep for gamestat implementation
* Move artifacts to separate files
+ Implement db seed with artifacts
+ Add gamedata_seed.pl script to seed artifacts to db
2021-07-02 16:03:20 +03:00
eleksir
30fb568de0 Use "от ... до ..." instead of simple dash in Weather.pm 2021-06-28 11:01:40 +03:00
eleksir
9c9e67e0a2 Enhance Weather.pm
- Fix incomplete message when t.min==t.max
- Print t.max - t.min if both of them are < 0
2021-06-28 10:50:53 +03:00
eleksir
47e82449e7 Update present api implementation to botapi v5.3 2021-06-26 10:00:51 +03:00
eleksir
b6ec09c5de Now bot triggers on phrase "кто все эти люди?" correctly even if it mentioned first 2021-06-24 01:21:51 +03:00
eleksir
dca58a3deb Add undocumented voice field to ChatMemberUpdated object 2021-06-12 14:09:40 +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
b8c3f4957c Update objects of Teapot::Bot according Bot API docs. Add missing fields.
+ Add missing fields some of existing objects
* Fix copy-paste errors in Teapot::Bot::Object::PollAnswer
2021-05-01 01:05:31 +03:00
eleksir
ec6c63a954 Add 'text' field to ChatMemberUpdated, looks like they miss to document it 2021-04-30 23:53:51 +03:00
eleksir
62650bd8ad Update to api 5.2 changes (no payments-2.0) 2021-04-30 23:42:54 +03:00