eleksir
bdcd3b56e5
Update README.md - this bot not so simple already
2021-03-01 02:12:25 +03:00
eleksir
5d14f08084
Implement (beta-quality) !rabbit, !bunny, !кролик commands and imgur api client for them
2021-03-01 02:10:58 +03:00
eleksir
dd67f33ec5
Merge fox and kitty plugins to image.pm, add oboobs, obutts command family, extend/fix admin.pm
...
* Merge fox and kitty plugins to image.pm
* Add !tits, !tities, !boobs, !boobies, !сиси, !сисечки commands
* Add !butt, !booty, !ass, !попа, !попка commands
* Add generic interface for plugin toggle flags
* Fix a bit morning fortune status plugin
2021-02-25 22:54:04 +03:00
eleksir
f4651ff915
Add !fox and !лис commands
2021-02-24 00:24:33 +03:00
eleksir
9fc11c7cf4
Admin censor: voice messages are special
2021-02-23 20:07:16 +03:00
eleksir
04cb3d2357
First run with admin module: fix typos in ChatMember.pm, Brain.pm, admin.pm, botlib.pm
2021-02-23 18:16:24 +03:00
eleksir
e38726a1f2
Move admin commands to dedicated module, allow use admin stuff only to admins of chat
2021-02-23 14:02:56 +03:00
eleksir
79004942bd
Teapot lib: document canTalk() function
2021-02-22 23:49:42 +03:00
eleksir
52724accee
Teapot lib: Implement ability to delete message in chat
2021-02-22 23:45:37 +03:00
eleksir
4bdaea0a42
Do not answer back if someone quote our new member greet
2021-02-11 20:34:22 +03:00
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
5d0fe793fd
fisher.pm: there can be not just water
2021-02-08 13:46:13 +03:00
eleksir
4616470584
Fix 2 more typos - assign last name when it exist
2021-02-07 21:30:39 +03:00
eleksir
9732e71775
Define really empty array for newcomers
...
* Array for new member was defined with 1 empty value, but it must be empty array
* For more than 1 member added, last member should be enumerated via "и", not ","
2021-02-07 20:56:54 +03:00
eleksir
626feed7db
Use markdown + quote for fortune, use irand() instead of int (rand())
2021-02-07 18:37:30 +03:00
eleksir
f043fe5d78
Fix three typos since last commit
2021-02-07 14:08:29 +03:00
eleksir
054809ad3e
telegrambot.pm: correctly handle new_chat_member event
...
* Extract newcommers from new_chat_members array, not from from-field
2021-02-07 13:53:30 +03:00
eleksir
35148838f9
Add commands !fish !fishing !рыба !рыбалка !рыбка, tweak archeologist.pm
...
* Rearrange .gitignore
+ Add fisher.pm with fishing commands
* Max probability in archeologist.pm should not exceed 100%
2021-02-07 13:51:55 +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
8a521d3f3b
Use bot name from api instead of config value
...
* Use API for bot username and full name
* Return if unable to getMe()
* Return if unable to get chat_id
* Drop handling non-text msgs, they never was implemented
2021-01-05 10:55:01 +03:00
eleksir
d32a25f93b
Extend MOTD intro phrase list
2021-01-05 00:22:39 +03:00
eleksir
94f37408d7
InlineKeyboardButton: remove doubling field
2021-01-04 18:15:08 +03:00
eleksir
a108ebd701
archeologist.pm: tweak a bit probabilities
2020-12-26 17:54:45 +03:00
eleksir
f58046599c
Expand list of archeological findings thanks to @ArtemisFaul
2020-12-26 17:46:40 +03:00
eleksir
380bff679e
Add google_place_id and google_place_type fields to Venue object
2020-12-22 01:32:50 +03:00
eleksir
7d3d17f807
Add small_file_unique_id and big_file_unique_id fields to ChatPhoto object
2020-12-22 01:30:15 +03:00
eleksir
a9c049da13
Add horizontal_accuracy, live_period, heading, proximity_alert_radius, to Location object
2020-12-22 01:26:39 +03:00
eleksir
ade7cefe5a
ChatMember.pm: Add is_anonymous field, rename until -> until_date
2020-12-22 01:22:11 +03:00
eleksir
6d7830024c
Update Poll object fields
2020-12-22 01:13:06 +03:00
eleksir
33616284ca
Add PollAnswer object
2020-12-22 01:12:38 +03:00
eleksir
d8728b383e
Chat.pm: add linked_chat_id and location fields
2020-12-22 00:46:32 +03:00
eleksir
59e8fa525a
Add ChatLocation object
2020-12-22 00:45:39 +03:00
eleksir
afe50154ab
Base.pm: perlcritic fixes
2020-12-21 23:59:08 +03:00
eleksir
252bb86eb8
Add fields sender_chat, dice and proximity_alert_triggered to Message.pm
...
+ Add fields sender_chat, dice and proximity_alert_triggered
* Re-arrange fields list in online-docs' order
* perlcritic fixes
2020-12-21 23:55:15 +03:00
eleksir
2b06abdbf4
Add object Dice
2020-12-21 23:54:03 +03:00
eleksir
083ae88386
Add object ProximityAlertTriggered
2020-12-21 23:53:24 +03:00
eleksir
3787bb3073
Implement !cat and !кис commands
2020-12-20 15:30:19 +03:00
eleksir
0cfecd72b3
Implement fuzzy matching in bred answer checking to avoid repeating input phrase.
2020-12-20 14:43:32 +03:00
eleksir
07275c5b43
Re-run Mojo::Loop everytime it dies, not just once.
2020-12-19 22:01:08 +03:00
eleksir
8bbe3b5d18
Make use of replyMd() in newcommer greet, add botsleep() utility sub
2020-12-19 17:34:20 +03:00
eleksir
10fc353924
Move !help to botlib.pm
2020-12-19 17:25:20 +03:00
eleksir
4a312e23d1
Add replyMd() to message object, implement canTalk() check in Teapot lib, re-arrange code
2020-12-19 17:15:01 +03:00
eleksir
cc43141d20
Implement !dig and !копать commands, fix typo in help message
2020-12-19 01:22:51 +03:00
eleksir
642aadfd84
Print chat mention to log only on debug "loglevel"
2020-12-17 11:59:11 +03:00
eleksir
0327130a5d
Telegram api can give us unexpected data during outage, try not to die/hang
2020-12-17 11:54:43 +03:00
eleksir
e861f5420b
Implement logging via Log::Any, cleanup, remove logger()
2020-12-13 16:23:16 +03:00
eleksir
a9193faf12
Do not answer in chat if quoted mention less than 4 chars.
2020-12-02 20:26:16 +03:00
eleksir
0256f6b45b
Trim() phrase before putting it to karma
2020-12-01 19:47:13 +03:00
eleksir
1031fe9242
Enhance friday.txt file parser, add some quotes to friday.txt
2020-11-22 17:46:23 +03:00
eleksir
63304d6bb9
First run fixes for fortune commands, also fixes for karma
2020-11-22 17:43:05 +03:00