diff options
author | 2022-04-19 11:36:45 +0100 | |
---|---|---|
committer | 2022-04-19 11:36:45 +0100 | |
commit | c89e407061eb68c0090e44aa830cdf2b6977d5ae (patch) | |
tree | 1db29e8085e645198c93425d40a478da73e3e7c5 | |
parent | Move api_client to a kwarg on creation of the Bot (diff) |
Don't schedule a now non-existant task
-rw-r--r-- | bot/exts/info/doc/_cog.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index e635c4308..079bfc942 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -11,7 +11,6 @@ from typing import Dict, NamedTuple, Optional, Tuple, Union import aiohttp import discord from botcore.site_api import ResponseCodeError -from botcore.utils import scheduling from botcore.utils.scheduling import Scheduler from discord.ext import commands @@ -78,12 +77,6 @@ class DocCog(commands.Cog): self.refresh_event.set() self.symbol_get_event = SharedEvent() - self.init_refresh_task = scheduling.create_task( - self.init_refresh_inventory(), - name="Doc inventory init", - event_loop=self.bot.loop, - ) - async def cog_load(self) -> None: """Refresh documentation inventory on cog initialization.""" await self.bot.wait_until_guild_available() |