eleksir
041ab3efeb
Fix fortune src filename check and another pack of style and natural language fixes
2021-02-09 00:57:08 +03:00
eleksir
a1d238949f
Refactor code
...
* move plugins out of botlib.pm
* use make_path instead of mkpath
* squash some bugs
* update .gitignore
* use more correct randomizer, rather than perl own rand()
* coding style fixes
2021-02-06 19:06:59 +03:00
eleksir
e861f5420b
Implement logging via Log::Any, cleanup, remove logger()
2020-12-13 16:23:16 +03:00
eleksir
ad37a349c1
Implement fortune commands set
...
+ !f, !ф, !fortune, !фортунка - show random phrase from fortune_mod db
+ !f 1, !ф 1, !fortune 1, !фортунка 1 - show fortune in chat at ~8 am
+ !f 0, !ф 0, !fortune 0, !фортунка 0 - do not show fortune in the morning
+ !f ?, !ф ?, !fortune ?, !фортунка ? - query morning fortune status
2020-11-22 15:17:34 +03:00
eleksir
e448225a7b
Implement !friday and !пятница commands
2020-11-21 15:47:53 +03:00
eleksir
295835c283
Add famous latin prases module
2020-10-22 13:49:45 +03:00
eleksir
9c629a8dbc
Use perlcritic to lint the code, make it happy
2020-10-19 18:01:47 +03:00
eleksir
1822054f03
Fix fool typo that prevents daemon from start
2020-09-21 02:09:21 +03:00
eleksir
d53ee53ad8
Use Cwd::utf8 to cope with returning string ut8-ness
...
* Use Cwd::utf8
* Sort cpanfile require, remove duplicates, add Cwd::utf8
* Add check on first call of abs_path()
2020-09-19 14:48:29 +03:00
eleksir
814a7ddb2b
Create pid file in workdir if run directly from unpriv. user
2020-09-11 11:20:21 +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
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