add IRCBot.http_client(), to allow modules to override default http client
This commit is contained in:
parent
9d6a3982ed
commit
81347fbba0
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ class Bot(object):
|
|||
|
||||
self._events.on("timer.reconnect").hook(self._timed_reconnect)
|
||||
|
||||
def http_client(self):
|
||||
return self._exports.get_one("http-client", utils.http.Client)
|
||||
|
||||
def _trigger_both(self):
|
||||
self.trigger_read()
|
||||
self.trigger_write()
|
||||
|
|
Loading…
Reference in a new issue