Skip to content

Commit

Permalink
Merge pull request #355 from python-discord/offtopicnames-bugfix
Browse files Browse the repository at this point in the history
Preventing multiple OffTopicNames background tasks from spawning
  • Loading branch information
lemonsaurus committed Apr 18, 2019
2 parents 0329bbc + d6beb62 commit 5367a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
PIP_SRC: ".cache/src"

steps:
- script: sudo apt-get update
displayName: 'Updating package list'

- script: sudo apt-get install build-essential curl docker libffi-dev libfreetype6-dev libxml2 libxml2-dev libxslt1-dev zlib1g zlib1g-dev
displayName: 'Install base dependencies'

Expand Down
2 changes: 1 addition & 1 deletion bot/cogs/off_topic_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __cleanup(self):
async def on_ready(self):
if self.updater_task is None:
coro = update_names(self.bot, self.headers)
self.updater_task = await self.bot.loop.create_task(coro)
self.updater_task = self.bot.loop.create_task(coro)

@group(name='otname', aliases=('otnames', 'otn'), invoke_without_command=True)
@with_role(*MODERATION_ROLES)
Expand Down

0 comments on commit 5367a9c

Please sign in to comment.