Commit graph

40 commits

Author SHA1 Message Date
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
Evelyn
a1a816b1cd Add monty python quit quotes! 2016-10-16 21:21:46 +01:00
Evelyn
5b527e247a Another quit quote! :D 2016-10-13 18:14:55 +01:00
Evelyn
50a01b7bf1 Add Donald Trump, lulzsec to quotes 2016-10-09 09:07:27 +01:00
Evelyn
51fa7fee3e We're all fucked. I'm fucked. You're fucked. [...] It's been the biggest cock-up ever and we're all completely fucked 2016-06-27 23:11:46 +01:00
Evelyn
871e7fc80d Add Walter Ulbricht quote 2016-06-25 22:12:06 +01:00
Evelyn
eb603fccb9 Another quote 2016-05-09 13:35:52 +01:00
Evelyn
2df29ab76e more quotes 2016-05-04 14:31:45 +01:00
jesopo
f943d63098
first commit. 2016-03-29 12:56:58 +01:00