From 354d58e1bd514a978fdc760908de3ddeceb3057d Mon Sep 17 00:00:00 2001 From: Tom Manderson Date: Thu, 2 Jan 2020 23:24:30 +1000 Subject: [PATCH] I'll squash these and PR them at some stage --- uqcsbot/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uqcsbot/base.py b/uqcsbot/base.py index a193a548..3d331eed 100644 --- a/uqcsbot/base.py +++ b/uqcsbot/base.py @@ -224,10 +224,10 @@ def cooked_run_until_complete(fut): fut.add_done_callback(lambda *a: evt.set()) evt.wait() return fut.result() + self._loop.run_until_complete = cooked_run_until_complete + self._user_client = slack.WebClient(token=self.user_token, loop=self._loop) - self._user_client.run_until_complete = cooked_run_until_complete self._bot_client = slack.WebClient(token=self.bot_token, loop=self._loop) - self._bot_client.run_until_complete = cooked_run_until_complete self._scheduler.configure(event_loop=self._loop) self._scheduler.start()