Joscha
2529c2d238
Rewrite session and connection
...
A session and connection now have a room assigned to them for their lifetime.
You can't connect a session to another room.
The launch() function must only be called once.
2017-04-02 20:10:59 +00:00
Joscha
c4fdb2942e
Change switching rooms
2017-04-02 14:26:03 +00:00
Joscha
75b2108b47
Remove old files
2017-03-29 20:56:22 +00:00
Joscha
f56af13ede
Add function to update sessions from a listing
...
This logic is used multiple times in the session.
2017-03-29 20:35:45 +00:00
Joscha
eb2b459216
Change all event and reply handling functions to hidden
2017-03-29 20:30:52 +00:00
Joscha
e9354194cf
Deal with almost all other (useful) events and commands
2017-03-29 20:25:43 +00:00
Joscha
14bae17104
Handle connecting to rooms
2017-03-29 17:24:29 +00:00
Joscha
04f7c9c781
Change "add_callback" functions to "subscribe" functions
2017-03-28 20:52:39 +00:00
Joscha
f366a02758
Add Session with a few events already implemented
2017-03-28 20:27:45 +00:00
Joscha
1b9d12d253
Revise Connection room switching logic
2017-03-28 20:27:21 +00:00
Joscha
f1314c7ec1
Add context handlers to Connection and use system ca_cert file
2017-03-28 16:24:32 +00:00
Joscha
aee8e5c118
Clean up Connection and add logging
2017-03-28 13:41:20 +00:00
Joscha
3b3ce99625
Add logging and log formats
2017-03-28 13:40:54 +00:00
Joscha
4e37154737
Clean up basic_types
2017-03-28 07:38:09 +00:00
Joscha
dd4b5144a9
Reorganize Message and SessionView into basic_types
2017-03-27 21:26:15 +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
Joscha
086f2be721
Fix uptime formatting
2016-05-24 13:38:06 +02:00
Joscha
948237f9d3
Add error handling
2016-05-23 23:01:15 +02:00
Joscha
52f6b14838
Add error handling
2016-05-23 22:56:44 +02:00
Joscha
4bed261a3e
Prevent accidentally triggering other bots
2016-05-23 21:39:41 +02:00
Joscha
2571852ab9
Fix function name
2016-05-23 21:36:58 +02:00
Joscha
fce00ab4e3
Stop when password unknown
2016-05-23 21:35:31 +02:00
Joscha
e5c3d05941
Change !create to !clone
2016-05-23 21:35:01 +02:00
Joscha
8b12b62217
Fix spelling mistkae
2016-05-23 20:33:42 +02:00
Joscha
4defd70bbe
Use mentionable format when comparing names
2016-05-23 19:30:50 +02:00
Joscha
3d8940ab4e
Fix nick comparison
2016-05-23 17:55:22 +02:00
Joscha
1e8fc2fb96
Fix mentionable usage
2016-05-23 17:54:38 +02:00
Joscha
90e92ca2c8
Fix nick change error
2016-05-23 17:54:19 +02:00
Joscha
b9a723f701
Move mentionable to room
2016-05-23 17:53:24 +02:00
Joscha
4d59e67291
Get all sessions
2016-05-23 17:52:28 +02:00
Joscha
80bfb26362
Add more commands
2016-05-23 16:33:18 +02:00
Joscha
400da9c053
Add mentionable function to room
2016-05-23 16:32:45 +02:00
Joscha
c1f1da7603
Remove debug messages
2016-05-23 16:31:53 +02:00