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
Joscha
3d12b070e8
Merge branch 'rewrite-3'
2017-09-04 21:06:12 +00:00
Joscha
4deb1870ee
Implement (almost) all mandatory botrulez commands
...
For the specific !help command, there will be a separate system.
2017-09-04 20:51:57 +00:00
Joscha
053573e3cb
Add Bot class
...
- Use rewrite-2 callbacks modified for async
- Utility function for running singular controller
- Update TestBot to work with new system
2017-09-04 19:56:17 +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
676f9d395b
Implement the rest of the events
2017-09-02 16:37:31 +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
9b0195aa72
Fix command parsing
2016-05-26 02:43:04 +02:00
Joscha
615d1bb4c5
Check for message before comparing
2016-05-26 02:42:11 +02:00
Joscha
96865ad560
Don't lowercase in parsing function
2016-05-25 00:56:24 +02:00
Joscha
188198bc11
Fix colon placement in help text
2016-05-25 00:53:19 +02:00
Joscha
f91e3b8193
Fix infinite set_nick loop
2016-05-25 00:25:33 +02:00
Joscha
a99a8af110
Revert breaking change
2016-05-25 00:08:50 +02:00
Joscha
4a2e115381
Change formatting of bot names in bot listing
2016-05-24 23:40:34 +02:00
Joscha
c6bddec530
Pass created_in and created_by as arguments instead of setting them after creation
2016-05-24 23:21:34 +02:00
Joscha
76b88fb1e7
Pass created_in and created_by as arguments instead of setting them after creation
2016-05-24 23:04:54 +02:00
Joscha
2063477c58
Save and restore bots
2016-05-24 22:47:18 +02:00
Joscha
99796b3f93
Store created-by name in full, not mentionable format
2016-05-24 22:40:42 +02:00
Joscha
5b618fef36
Change "name" to "nick" where it makes sense
2016-05-24 22:40:05 +02:00
Joscha
ff454a2e13
Add option to only list commands to !help
2016-05-24 21:29:22 +02:00
Joscha
d87c61cd6c
Distinguish bot-specific commands
2016-05-24 20:42:24 +02:00
Joscha
434a3db0e2
Check for session before trying to return it
2016-05-24 20:42:05 +02:00
Joscha
6c7372441b
Convert time differences to int when formatting
2016-05-24 20:02:57 +02:00
Joscha
d3c8ed1404
Improve date and time difference formatting
2016-05-24 19:51:54 +02:00
Joscha
7550706798
Fix detailed help message
2016-05-24 19:50:51 +02:00