Commit Graph

11 Commits

Author SHA1 Message Date
eleksir
4bf814c473 Move chat commands to botlib.pm, implement !version, !ver, !версия command 2020-11-15 21:43:41 +03:00
eleksir
9c629a8dbc Use perlcritic to lint the code, make it happy 2020-10-19 18:01:47 +03:00
eleksir
0d0b8bb4c2 Add one more common phrase 2020-10-03 19:12:05 +03:00
eleksir
1567fbe0db New logging, handle bot quote in groups, newcommer greets reworked
+ More sane and verbose logging
* Newcommer greet now should now mention newcommer
+ If someone in group quote bot's phrase, bot should answer
* Move some subs related to framework to telegramlib.pm
* Handle (log only for now) sent media - documents, stickers, photos in public chats (voice, audio, video still unhandled)
2020-09-26 21:36:37 +03:00
eleksir
f0d8e90441 Add date to logger() messages like in bsd syslog 2020-09-21 02:11:47 +03:00
eleksir
9461042ec4 Use botlib own trim() 2020-09-19 14:43:48 +03:00
eleksir
7218c7d510 Require perl-5.18.0 to properly lc() and uc() unicode strings 2020-09-11 11:20:21 +03:00
eleksir
c8819676e7 Add more random phrases 2020-09-11 11:20:21 +03:00
eleksir
c3d2d76ad4 Add trim() and random pre-generated phrase answer
+ Add php-inspired trim() function
+ Add randomCommonPhrase() in order not to repeat given sentense if unable to produce relevant phrase from vocabulary generator
2020-09-11 11:20:21 +03:00
eleksir
20bbfab333 Add help, debug log, fix pid file creation
+ Add help in group chat
+ Add debug log ability
* A bit of cleanup
* Check against start uid rather than effective uid when creating pid-file
2020-09-11 11:20:21 +03:00
eleksir
2bf710aeb7 Initial commit. Split bot from myapi as separate application. 2020-09-05 22:50:10 +03:00