jesopo
|
7ee65f8f8c
|
remove src/utils/irc/protocol.py
|
2019-10-28 10:56:33 +00:00 |
|
jesopo
|
a9111c7241
|
add ModuleManager.try_reload_modules(), to try reloading in a transaction
if any of the modules fails to reload, rollback and use the already loaded modules. closes #179
|
2019-10-14 12:56:04 +01:00 |
|
jesopo
|
3fc7294539
|
exit when all servers are disconnected after ctrl+c
|
2019-10-11 17:06:37 +01:00 |
|
jesopo
|
0207e8e2b6
|
Revert "no longer treat ctrl+c as "shutdown" - bitbotctl will take this job"
This reverts commit 73e6ede8cc .
|
2019-10-11 15:41:51 +01:00 |
|
jesopo
|
73e6ede8cc
|
no longer treat ctrl+c as "shutdown" - bitbotctl will take this job
|
2019-10-11 15:39:01 +01:00 |
|
jesopo
|
9c6b9c3964
|
List()ify self.bot.servers.values() as it can change mid-QUIT
|
2019-06-06 22:39:57 +01:00 |
|
jesopo
|
2ca4fd48f7
|
Make params arg for logging functions optional
|
2019-06-06 12:59:47 +01:00 |
|
jesopo
|
8dbae6a5e9
|
Give SentLine (and preproc.send events) a new event object, to track events
related to a line after it is sent
|
2019-06-04 17:51:20 +01:00 |
|
jesopo
|
825dce5292
|
.on_send( only exists on SentLines, not ParsedLines
|
2019-06-04 14:41:55 +01:00 |
|
jesopo
|
09015dd302
|
Change signals.py to subvert write throttling when sending QUIT
|
2019-06-04 14:38:08 +01:00 |
|
jesopo
|
b8f778d7bd
|
Only try to send QUITs on ctrl+c when we're connected - sys.exit otherwise
|
2019-05-29 16:11:47 +01:00 |
|
jesopo
|
850ddd0ab4
|
Use self.bot.load_modules in modules.py
|
2019-05-27 15:47:47 +01:00 |
|
jesopo
|
8c3ea677ec
|
Switch signals.py SIGHUP to also load new modules
|
2019-05-12 14:11:29 +01:00 |
|
jesopo
|
f236f879f4
|
Reload bot.conf and modules on SIGHUP
|
2019-03-13 18:27:34 +00:00 |
|
jesopo
|
11c4d70156
|
add IRCServer.clear_send_buffer() to clear queued lines
|
2019-03-05 11:35:24 +00:00 |
|
jesopo
|
91c2ab03ba
|
add IRCServer.send_enabled, to prevent sending after QUIT in signals.py
|
2019-03-05 11:29:46 +00:00 |
|
jesopo
|
68ebecedfd
|
Don't send random quit quote on SIGINT
|
2019-03-05 11:25:34 +00:00 |
|
jesopo
|
cf64e8832b
|
Make use of "when line sent" logic to disconnect after QUIT (signals.py)
|
2019-02-10 14:32:04 +00:00 |
|
jesopo
|
730a4e6b87
|
Don't use the event system to get results from other modules - use exports
|
2019-02-09 13:14:45 +00:00 |
|
jesopo
|
351a88bda6
|
Only gracefully handle SIGINT once
|
2018-12-03 19:46:15 +00:00 |
|
jesopo
|
71775803d0
|
Reload bot config (on USR1) on the main thread
|
2018-11-27 15:10:49 +00:00 |
|
jesopo
|
d13a5069e3
|
Grab response from functions asked to be executed on the main thread and feed
them back to the callers, allowing rest_api.py to take the main thread while
it's waiting for the response to give back to the requesting client
|
2018-11-27 14:25:12 +00:00 |
|
jesopo
|
72dca06626
|
Add a way to catch when a writebuffer is emptied so we can e.g. assure a QUIT is
sent before shutting down the bot
|
2018-11-27 11:56:03 +00:00 |
|
jesopo
|
819f4e0680
|
Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_load
|
2018-10-12 18:07:23 +01:00 |
|
jesopo
|
fdccba9bf0
|
Change modules/signals.py to use bot.trigger(), add a !serverset @utils.export
for quit-quote
|
2018-10-07 11:28:51 +01:00 |
|
jesopo
|
aa0c9ec9f1
|
Update modules/signals.py to use the new Config "system"
|
2018-09-29 20:27:20 +01:00 |
|
jesopo
|
ecb9d7cb3f
|
Move most code in root directory to src/
|
2018-09-24 15:13:27 +01:00 |
|
jesopo
|
fcbb7c960c
|
Refactor everything to use delimited events
|
2018-09-19 13:25:12 +01:00 |
|
jesopo
|
8c6ab17e57
|
give an Exports object (actually, ExportsContex object) to each module, to
facilitate things like !set and !channelset without using the events system
|
2018-09-02 19:54:45 +01:00 |
|
jesopo
|
21abbc33c8
|
Update reloading config on USR1
|
2018-09-02 11:43:52 +01:00 |
|
jesopo
|
9874f79b49
|
Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
|
2018-08-31 12:55:52 +01:00 |
|
jesopo
|
0f09184e48
|
Add setting to prevent sending a random quote on quit
|
2018-08-13 16:04:27 +01:00 |
|
jesopo
|
68298bbccf
|
Added EventHook.call_for_result to get a result or default from an event
|
2018-07-15 15:15:52 +01:00 |
|
jesopo
|
06de65b1c1
|
Move quit quotes to it's own module
|
2018-07-15 15:09:11 +01:00 |
|
Evelyn
|
72b2f3bc29
|
Amber Rudd
|
2017-10-27 09:40:26 +01:00 |
|
Evelyn
|
a8ea18202e
|
Signals: Glenn Moramarco quote
|
2017-10-10 10:54:38 +01:00 |
|
Evelyn
|
1e644e78f3
|
Signals: Add Turnball
|
2017-09-29 21:45:48 +01:00 |
|
Evelyn
|
84bfe81182
|
Bitbot can do Telegram now, I guess
|
2017-09-05 20:50:20 +01:00 |
|
Evelyn
|
bb8d73d9d1
|
Signals: add quote
|
2017-08-25 10:57:54 +01:00 |
|
Evelyn
|
78c80a71dd
|
Signals: Don't take Hitler out of context, add 'tear down this wall' etc
|
2017-08-24 17:00:55 +01:00 |
|
Evelyn
|
69b1a6bd9b
|
'Death solves all problems - no man, no problem.' was in fact written by Anatoly Rybakov, not Stalin
|
2017-08-10 00:18:45 +01:00 |
|
Evelyn
|
81edacfba6
|
Sun Tzu*2, optimism (ha)
|
2017-06-23 21:13:31 +01:00 |
|
Evelyn
|
a740ccbb61
|
add quote
|
2017-06-17 11:29:54 +01:00 |
|
Evelyn
|
36816af1d8
|
Dag Hammarskjöld quote somewhat relevant to our lives at present
|
2017-06-16 14:04:04 +01:00 |
|
Evelyn
|
710699175b
|
Attribute quote to topiary
|
2017-03-21 15:05:30 +00:00 |
|
Evelyn
|
6615dda7a1
|
quotes
|
2017-01-27 21:30:54 +00:00 |
|
Evelyn
|
67f0d16c1c
|
Add quote to signals module
|
2016-12-14 14:43:55 +00:00 |
|
Evelyn
|
60a728f959
|
More quit quotes!
|
2016-11-28 10:11:22 +00:00 |
|
Evelyn
|
49af64d553
|
Dag Hammarskjöld quote
|
2016-11-17 22:19:26 +00:00 |
|
Evelyn
|
fc55e853e3
|
more quotes and stuff
|
2016-10-25 21:10:56 +01:00 |
|