Commit graph

215 commits

Author SHA1 Message Date
20f635a7ae Clean up pinging 2019-04-08 10:54:16 +00:00
b437731c7f Improve pinging
It actually resets the ping check now. Also, I'm now using the event
callbacks for sending the ping-reply, which only seems appropriate.
2019-04-07 19:46:30 +00:00
8c34a450c1 Clean up 2019-04-07 19:05:17 +00:00
2a9cd03c47 Send and receive packets 2019-04-07 18:11:16 +00:00
2de2cbf92c Document stuff
Also, use the correct exceptions when interacting with _ws
2019-04-07 15:38:51 +00:00
c60526a34d Add some event calls and event loop 2019-04-07 12:20:31 +00:00
a24e4aa18a Add debug logging 2019-04-06 23:44:42 +00:00
500d91a14c Make mypy happy 2019-04-06 22:24:29 +00:00
47a8014b4c Fix disconnect() bug
I just forgot to set the _state to _DISCONNECTING while disconnecting.
2019-04-06 19:04:19 +00:00
0d9161fd1e Switch to asyncio.Condition 2019-04-06 18:07:33 +00:00
f6f7cc5aa6 Clean up 2019-04-06 17:17:43 +00:00
23425090cc Implement most of Connection 2019-04-06 17:17:10 +00:00
325af11fea Add Connection concept 2019-04-06 10:22:23 +00:00
a5af01f669 Start rewrite (yet again)
This will hopefully be the final rewrite.
2019-04-06 09:02:09 +00:00
Joscha
5e108fd31b Add Module and ModuleBot 2018-09-12 21:18:33 +00:00
Joscha
2c1a1996a1 Remove debugging logging 2018-08-19 20:24:54 +00:00
Joscha
85eb820fa6 Keep trailing backslash in arg parsing 2018-08-13 16:34:17 +00:00
Joscha
e60d0ba81e Add PersonalAccountView 2018-08-13 13:27:56 +00:00
Joscha
6ed513efd9 Log failure to connect 2018-08-08 17:01:27 +00:00
Joscha
ceaf8748e9 Fix bots vanishing after trying to reconnect 2018-08-08 16:55:59 +00:00
Joscha
fa579ec231 Add license 2018-08-06 14:05:28 +00:00
Joscha
0881d25103 Fix joining rooms with passwords 2018-08-05 11:54:25 +00:00
Joscha
aee21f359c Restructure command parsing 2018-08-04 10:46:42 +00:00
Joscha
ac04e7fd30 Notify inhabitant of edits 2018-08-04 09:12:55 +00:00
Joscha
6b1348236d Retry transaction until it works 2018-08-03 19:49:01 +00:00
Joscha
1fee49d0e4 Fix various things
- Fix some typos in Message and SessionView
- Database operations can now access self
- Fix mention (missing comma) and rename mention_reduce to normalize
2018-08-03 18:13:32 +00:00
Joscha
5c254f4e70 Use configparser in examplebot 2018-08-02 20:30:45 +00:00
Joscha
78bb6b935f Set some Connection parameters in join_room 2018-08-01 21:44:46 +00:00
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