Commit Graph

108 Commits

Author SHA1 Message Date
Luke Murphy cc6e8af6c4
Use new attribute 2021-01-16 17:31:22 +01:00
Luke Murphy 4e883004fd
Adapt glossbot to new message handling implementation 2021-01-16 17:30:28 +01:00
Luke Murphy 7d71fd2ba4
Revamp parsing and handling of messages 2021-01-16 16:38:12 +01:00
Luke Murphy 27f202de37
Only pass messages when summoned 2021-01-16 13:17:55 +01:00
Luke Murphy ad3d77f5e1
Merge command functions once more 2021-01-16 13:14:42 +01:00
Luke Murphy b1b9c0e701
Use new indentation style 2021-01-16 13:09:41 +01:00
Luke Murphy aa64a1a68e
Support @ commands for direct messages 2021-01-16 13:05:53 +01:00
Luke Murphy fd2134f914
Fix up help formatting 2021-01-16 13:05:30 +01:00
Luke Murphy d209ffdefd
Fix log level 2021-01-16 12:50:29 +01:00
Luke Murphy 17773e9b86
Add nick to logging 2021-01-16 12:50:08 +01:00
Luke Murphy 4949044377
Revise help for new command syntax 2021-01-16 12:34:26 +01:00
Luke Murphy 56e37809ba
Pass on flow for end-user defined commands 2021-01-16 12:30:59 +01:00
Luke Murphy 313ec0dfa5
Handle empty glossary correctly 2021-01-16 12:30:37 +01:00
Luke Murphy deeeaffd77
Send to room 2021-01-16 12:30:19 +01:00
Luke Murphy f3b9010542
Add punctuation 2021-01-16 12:29:37 +01:00
Luke Murphy c1c778af66
Don't log since end-user might have implemented 2021-01-15 21:21:07 +01:00
Luke Murphy 7dd96a9f30
Handle group chats 2021-01-15 21:18:20 +01:00
Luke Murphy 542627cb5e
First stab at glossbot 2021-01-15 21:14:54 +01:00
Luke Murphy 086ccd8357
Remove command usage 2021-01-15 21:14:38 +01:00
Luke Murphy d589f6cd7e
Fix logging 2021-01-15 21:14:28 +01:00
Luke Murphy af292c45bf
Implement storage with Redis
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/21.
2021-01-15 21:14:04 +01:00
Luke Murphy ece7da4055
Remove f 2021-01-15 15:51:21 +01:00
Luke Murphy 3e83a9390b
`!bots` -> `/bots` 2021-01-15 15:05:49 +01:00
Luke Murphy 00a3c67ee5
Fix wording 2021-01-15 14:42:17 +01:00
Luke Murphy 25d740ed27
Remove newline 2021-01-15 14:42:11 +01:00
Luke Murphy 2bb47e6f86
Add bots command 2021-01-15 14:42:02 +01:00
Luke Murphy 82f6ba0681
Log when no conf file found 2021-01-15 14:32:01 +01:00
Luke Murphy 5e43ee8a46
Remove unused import 2021-01-15 13:01:31 +01:00
Luke Murphy a2e7d328f9
Log errors when we get them 2021-01-15 12:57:25 +01:00
Luke Murphy 78581dcf2f
Support avatars
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/17.
2021-01-15 11:08:07 +01:00
Luke Murphy a463aa91f1
Support commands
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/12.
2021-01-14 23:45:23 +01:00
Luke Murphy d8bbacc258
Use logger 2021-01-14 22:44:48 +01:00
Luke Murphy aabe1fa683
`bot.conf` -> `$name.conf`
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/3.
2021-01-14 22:36:03 +01:00
Luke Murphy 5b43a2cde2
Arrange precedence of config loading
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/14.
2021-01-14 22:26:13 +01:00
Luke Murphy fbd72b55fe
Don't explode when function doesn't get implemented
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/18.
2021-01-14 19:34:13 +01:00
Luke Murphy 87ada3e79d
Remove old function 2021-01-14 19:18:41 +01:00
Luke Murphy 11692ab64f
Add logger to class 2021-01-14 19:18:27 +01:00
Luke Murphy d559525bf6
Support logging
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/2.
2021-01-13 23:19:06 +01:00
Luke Murphy 1bbbbf9159
Support invites 2021-01-13 22:49:52 +01:00
Luke Murphy e3282a89bc
Use direct/group API
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/13.
2021-01-13 21:56:45 +01:00
Luke Murphy cf93c07294
Revert to sender attribute as more clear now 2021-01-13 14:51:23 +01:00
Luke Murphy deca260a67
Add room attribute 2021-01-13 14:42:26 +01:00
Luke Murphy 1137624180
Make EchoBot support group chats 2021-01-13 14:31:00 +01:00
Luke Murphy e0c8583b2d
Rename to use source (and fix typo) 2021-01-13 14:30:46 +01:00
Luke Murphy 6272ac9475
Move example bots internally 2021-01-13 14:08:44 +01:00
Luke Murphy 1a88f7049b
Rename message class 2021-01-13 14:00:59 +01:00
Luke Murphy f909d43c59
Handle missing optional variables 2021-01-12 22:04:29 +01:00
Luke Murphy 4f6f102d1e
Read config from environment and use argparse
Related to https://git.autonomic.zone/decentral1se/xbotlib/issues/7.
2021-01-12 21:39:50 +01:00
Luke Murphy bca6e6c90a
Change reply to accept body argument first 2021-01-10 19:41:56 +01:00
Luke Murphy eb87de7de5
Provide a base react function and error out 2021-01-10 19:29:34 +01:00
Luke Murphy 18bae6ec09
Refine API for replying 2021-01-10 19:17:10 +01:00
Luke Murphy aefcfbab9c
Docs docs docs 2021-01-10 16:51:20 +01:00
Luke Murphy 9767c7337e
Manage DM and group chat 2021-01-10 16:31:17 +01:00
Luke Murphy 43821cbd1b
Gather nick and room 2021-01-10 15:45:12 +01:00
Luke Murphy b4a09497b8
Catch KeyboardInterrupt cleanly 2021-01-10 15:37:10 +01:00
Luke Murphy cc5ef29d2e
Drop logging for now 2021-01-10 14:58:23 +01:00
Luke Murphy 301f426cf9
Add EasyMessage and reply interface 2021-01-10 14:49:22 +01:00
Luke Murphy 8369689a71
First working prototype 2021-01-10 14:10:39 +01:00