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