25 Commits

Author SHA1 Message Date
eleksir
b3a8a1724c Add SIGQUIT handler, fix setting of default value of loglevel 2022-11-06 18:12:35 +03:00
eleksir
e100b00838 Fix setting default value for forward_max if not defined in config 2022-11-06 18:01:30 +03:00
eleksir
499da4fe84 Fix whitespaces in Craniac.pm :) 2022-09-02 00:07:19 +03:00
eleksir
dcb3204c9e Update modules versions, get rid of Protocol::Redis::XS as it is broken on recent versions of libhiredis 2022-05-31 03:52:19 +03:00
eleksir
e6d8e4c1a2 Use sha256_hex of plugin name and chatid as filename for brains in commin case 2022-05-31 03:49:22 +03:00
eleksir
ca982571d9 Reimplement commands parser 2022-04-22 16:28:02 +03:00
eleksir
03634958a1 Fix typo 2022-04-22 15:46:19 +03:00
eleksir
6eeb8e7b89 Tidy incomming redis message 2022-04-22 15:42:23 +03:00
eleksir
7b32737b33 Use cloned version of incomming redis message as template for outgoing message 2022-04-22 15:01:20 +03:00
eleksir
8952828886 Use command sign from config, when misc->bot_nick is not supplied, it defaults to empty string 2022-04-22 15:00:04 +03:00
eleksir
221314ae16 Userid and chatid must be strings in order to work with chats components other than Telegram 2022-04-22 14:58:26 +03:00
eleksir
27b9a4bcbd Set each async signal handler separately 2022-04-22 14:57:14 +03:00
eleksir
62311dae21 Fix typo in кости command, use shorter var name for csign 2022-04-03 18:18:38 +03:00
eleksir
30ebe8aca1 Set userid and chatid explicitly to num for redis json msg 2022-03-27 16:06:43 +03:00
eleksir
622b690946 Perlcritic overhaul, add missing 'use module', update cpanfile, replace Mojo::Log with Log::Any
* Use more strict policy in perlcritic (add more policies)
* Add missing Use Encode and Use File::Spec in Craniac.pm
* Replace Mojo::Log with Log::Any, as Log::Any can catch stacktraces
* Update cpanfile
2022-02-12 19:08:00 +03:00
eleksir
5df11d2437 Minor fixes for v1.0 release, mostly comments, add openrc init script 2022-01-07 16:30:53 +03:00
eleksir
f8d0c3f701 Move Lat module here, as it uses brain too 2022-01-04 17:48:13 +03:00
eleksir
b7013d6ab0 Loop detection, easter eggs, update readme, update sample config, fix telegram-crippled brain names 2022-01-04 16:38:45 +03:00
eleksir
0f58c30603 Implement async signal trap via Mojo::IOLoop::Signal for more robust app stop and restart 2022-01-01 17:34:07 +03:00
eleksir
240712bf42 Use eval on lazy brain init 2022-01-01 03:47:22 +03:00
eleksir
64c8300f93 add missing ping command 2022-01-01 03:44:50 +03:00
eleksir
b8291a4c3e Add static commands, common phrases and Phrases.txt 2021-12-31 20:05:03 +03:00
eleksir
352dc3b54c Use logging facility from mojo 2021-12-28 02:26:33 +03:00
eleksir
1c82a2ec0e First adoption step for production use with telegram frontend 2021-12-26 16:50:08 +03:00
eleksir
23f7b5c602 Initial commit 2021-08-18 23:59:17 +03:00