diff options
| author | 2019-04-19 01:53:47 +0200 | |
|---|---|---|
| committer | 2019-04-19 01:53:47 +0200 | |
| commit | 5367a9c55f33dd3502b9847d57886f97d61ef870 (patch) | |
| tree | a8c8db5cd25f010cc44825c692b87061741e3cd1 | |
| parent | Merge pull request #352 from python-discord/fix-otnames-cycling-bug (diff) | |
| parent | Adding sudo apt-get update to pipeline to update repository package list (diff) | |
Merge pull request #355 from python-discord/offtopicnames-bugfix
Preventing multiple OffTopicNames background tasks from spawning
| -rw-r--r-- | azure-pipelines.yml | 3 | ||||
| -rw-r--r-- | bot/cogs/off_topic_names.py | 2 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a63cfe21..a14364881 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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' diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py index 58a53118e..2cdaa2c4f 100644 --- a/bot/cogs/off_topic_names.py +++ b/bot/cogs/off_topic_names.py @@ -86,7 +86,7 @@ class OffTopicNames:      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) | 
