Commit graph

179 commits

Author SHA1 Message Date
ee726b93ff Check if a command has arguments 2019-04-11 23:27:19 +00:00
788b116d83 Clean up 2019-04-11 21:44:05 +00:00
27b3f4b29e Add Bot 2019-04-11 21:33:17 +00:00
82a292b5d8 Fix room not knowing its own nick initially 2019-04-11 21:32:20 +00:00
72d10f5c43 Implement command system 2019-04-11 21:32:01 +00:00
4cd422493b Update own session on who command 2019-04-10 17:07:30 +00:00
ed2bd2a2c6 Add some logging to Room 2019-04-10 14:56:24 +00:00
c3fa1bf396 Add Client
Some functionality is yet to be tested.
2019-04-10 14:07:22 +00:00
17d4fb216e Don't try to set an empty nick 2019-04-10 09:01:08 +00:00
97f05272ca Implement Message related classes 2019-04-10 08:56:01 +00:00
06af0e7faa Fix minor crashes 2019-04-10 08:07:26 +00:00
9d0c588685 Reset ping check on ping-events only 2019-04-10 08:05:53 +00:00
bf736430a6 Implement Session-related classes 2019-04-10 08:05:39 +00:00
40edcdc791 Implement Room
First, the Room itself.
2019-04-10 08:03:36 +00:00
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