Skip to content

Commit

Permalink
I'll squash these and PR them at some stage
Browse files Browse the repository at this point in the history
  • Loading branch information
TRManderson committed Jan 2, 2020
1 parent bcfd15a commit 354d58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uqcsbot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 354d58e

Please sign in to comment.