add IRCBot.http_client(), to allow modules to override default http client

This commit is contained in:
jesopo 2019-09-11 17:54:24 +01:00
parent 9d6a3982ed
commit 81347fbba0

View file

@ -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()