Commit graph

34 commits

Author SHA1 Message Date
Joscha
d55d05826f Notice when connection runs out of retries 2018-08-01 21:41:08 +00:00
Joscha
46cd20ac74 Log more stuff 2018-07-29 12:20:40 +00:00
Joscha
7e28c6e3dd Deal with closed ws connection while sending 2018-07-27 19:22:04 +00:00
Joscha
1bb38fc836 Make bot library functional 2018-07-26 19:54:44 +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
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
023d154d37 Fix typo 2017-09-08 06:04:01 +00:00
Joscha
db07cdf17b Clean up connect loop 2017-09-07 22:35:01 +00:00
Joscha
9c4f5e4372 Catch even more exceptions to stay connected or reconnect 2017-09-07 07:51:19 +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
b8bb75a897 Fix previous "lingering bot" bug
When using !spawnevil on @TestSummoner, the @TestSpawn which was
created would reconnect to the room because of faulty logic in
room._run(). This would cause a few errors to occur. Fixed now!
2017-09-04 16:32:32 +00:00
Joscha
1c3b9d0a20 Rework spawning and task structure
Still not working: See TestBot.py
2017-09-04 16:21:29 +00:00
Joscha
34e1ae4b8f Fix connection reply bug
Now, packet ids are always strings, except for self._pid.
2017-09-03 12:27:28 +00:00
Joscha
a199af40d9 Implement all basic room commands 2017-09-02 13:31:17 +00:00
Joscha
6cc8094e0d Clean up module structure 2017-09-02 12:58:54 +00:00
Joscha
dfad3241fb Make more events work (and use an annoying bot to test them) 2017-09-02 12:27:38 +00:00
Joscha
04364c6b3f Add basic functionality
Bots can now
 - stay connected
 - set their nick
2017-09-02 10:37:58 +00:00
Joscha
d0ad542b72 Fix some bugs. The TestBot can now connect to a room and stay connected. 2017-09-02 08:55:50 +00:00
Joscha
97b98c29f7 Start the rewrite (again) 2017-09-01 22:12:11 +00:00
Joscha
52f6b14838 Add error handling 2016-05-23 22:56:44 +02:00
Joscha
fbd7360914 Fix threading 2016-05-23 16:24:17 +02:00
Joscha
0159043895 Fix spelling mistkae 2016-05-23 02:40:49 +02:00
Joscha
b0d9953ed8 Make disconnect function public 2016-05-10 19:54:04 +02:00
Joscha
7e1947bd04 Move room format string to connection class 2016-05-10 16:54:18 +02:00
Joscha
4933caa6a9 Add url format as optional argument 2016-05-09 22:17:16 +02:00
Joscha
6d24f08924 Make adding callbacks for message replies easier 2016-05-09 21:16:54 +02:00
Joscha
507efbc654 Fix syntax and spelling mistkaes 2016-05-08 21:27:52 +02:00
joscha
d7e16e173f Add callbacks 2016-05-08 00:46:47 +02:00
Joscha
a0bd6b71bf Add callbacks for connect, disconnect and stop 2016-05-08 00:01:10 +02:00
Joscha
196edc88ec Move files into yaboli folder 2016-05-06 11:26:35 +02:00
Renamed from connection.py (Browse further)