Commit graph

187 commits

Author SHA1 Message Date
Joscha
d55d05826f Notice when connection runs out of retries 2018-08-01 21:41:08 +00:00
Joscha
df72a3d9cf get_message returns None when no message was found 2018-07-31 15:19:11 +00:00
Joscha
bb2dadb862 Add database module 2018-07-31 15:18:57 +00:00
Joscha
339d3ca516 Rename event functions 2018-07-29 15:26:45 +00:00
Joscha
46cd20ac74 Log more stuff 2018-07-29 12:20:40 +00:00
Joscha
31f4e23aba Enable debugging in examplebot 2018-07-29 11:43:26 +00:00
Joscha
55798a5b88 Implement rewind/fast-forward system 2018-07-27 22:49:24 +00:00
Joscha
7e28c6e3dd Deal with closed ws connection while sending 2018-07-27 19:22:04 +00:00
Joscha
d9761008f6 Change botrulez arguments and update examplebot 2018-07-27 19:09:43 +00:00
Joscha
943537b57a Add bot's own session to listing 2018-07-27 15:12:23 +00:00
Joscha
f8d3f68ed9 Clean up 2018-07-27 12:21:57 +00:00
Joscha
bd75d0ebba Add new inhabitant callback 2018-07-27 12:21:33 +00:00
Joscha
6174fa6ff1 Add yaboli.trigger decorator 2018-07-27 10:29:55 +00:00
Joscha
e39f41e183 Remove debugging stuff 2018-07-26 22:31:50 +00:00
Joscha
5ee578258e Fix some bugs 2018-07-26 22:28:23 +00:00
Joscha
b5827df2f1 Clean up some debugging prints 2018-07-26 20:35:07 +00:00
Joscha
fb7079a7a9 Clean up 2018-07-26 20:27:38 +00:00
Joscha
1bb38fc836 Make bot library functional 2018-07-26 19:54:44 +00:00
Joscha
3eade77cf1 Clean up 2018-07-26 14:36:58 +00:00
Joscha
3051b15095 Make room work 2018-07-26 14:32:14 +00:00
Joscha
a971b7e064 Clean up 2018-07-25 20:56:03 +00:00
Joscha
1f5fc58e06 Continue rewrite 2018-07-25 20:54:44 +00:00
Joscha
6b65bef5e0 Start rewrite 2018-07-25 16:16:10 +00:00
Garmelon
04f4c3a8b6
Merge pull request #2 from jeremyredhead/jeremyredhead-easy-setup
Add a SetupTools setup.py file
2018-02-19 22:46:23 +00:00
jeremyredhead
c728ff331a
Add a SetupTools setup.py file
This will making installing & using yaboli easier
2018-02-19 20:50:28 +00:00
Joscha
5952c4c6bd Allow for pre-compiled regex triggers 2018-02-16 23:30:25 +00:00
Joscha
156e9088ef Fix missing parentheses on call to items() 2017-10-26 16:34:47 +00:00
Joscha
16e9910729 Fix bug where own session is added to sessions 2017-10-22 10:40:24 +00:00
Joscha
be48e67b3a Remove debugging print 2017-09-10 12:58:40 +00:00
Joscha
ba9c5d38cc Fix time delta format 2017-09-10 12:54:17 +00:00
Joscha
31b3f715e0 Remove testing scripts 2017-09-08 15:53:03 +00:00
Joscha
6628b27ec3 Improve help topic system 2017-09-08 15:45:59 +00:00
Joscha
405a9b81a5 Add triggers and rename callbacks to commands 2017-09-08 13:53:35 +00:00
Joscha
da84c6685e Improve bot command parsing
Further improvements:
 - add message.mid or session.uid or session.sid
 - use "messages" instead of "log" and "sessions" instead of
   "listing" where they're only lists
2017-09-08 11:16:44 +00:00
Joscha
5b0f078f7a Add timeout to Controller's connect() 2017-09-08 08:01:07 +00:00
Joscha
ccaaf6be3f Clean up debugging code 2017-09-08 07:51:09 +00:00
Joscha
b917fed126 Add docstrings to Room 2017-09-08 07:37:42 +00:00
Joscha
023d154d37 Fix typo 2017-09-08 06:04:01 +00:00
Joscha
2e7b364307 Add database submodule for easy db access 2017-09-07 22:35:48 +00:00
Joscha
db07cdf17b Clean up connect loop 2017-09-07 22:35:01 +00:00
Joscha
41d7e5b0dc Add bot ping message setting 2017-09-07 22:34:22 +00:00
Joscha
9c4f5e4372 Catch even more exceptions to stay connected or reconnect 2017-09-07 07:51:19 +00:00
Joscha
7cfdc0f13b Fix on_edit_message callback/event 2017-09-07 07:50:24 +00:00
Joscha
85bcdad916 Treat connection loss correctly
- detect timeout using websocket pings
- catch more errors in reconnect attempts
2017-09-06 10:04:41 +00:00
Joscha
a6d4a0779f Add help topic and multibot drafts 2017-09-05 22:36:39 +00:00
Joscha
828bb978c2 Reduce default error logging 2017-09-05 22:36:19 +00:00
Joscha
ea1f68fb84 Fix sudden amnesia regarding own name
When set_nick is called, self.nick is now modified.
2017-09-05 22:35:14 +00:00
Joscha
80b8a997fe Fix typo 2017-09-05 22:34:25 +00:00
Joscha
d783abf014 Generalize querying sessions in listing 2017-09-05 22:33:52 +00:00
Joscha
3945c6ae45 Allow for bots to be restarted and fix botrulez commands 2017-09-05 19:38:19 +00:00