Skip to content

Commit

Permalink
load in create_task
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk-rnjn committed Jul 28, 2023
1 parent 30b1d1f commit 15c4c99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/automod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def cog_load(self) -> None:
return

self._was_ready = True
await self.__cache_build()
await self.bot.loop.create_task(self.__cache_build())

async def __cache_build(self):
for guild in self.bot.guilds:
Expand Down
1 change: 1 addition & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
all_extensions:
- cogs.automod
- cogs.actions
- cogs.api
- cogs.config
Expand Down

0 comments on commit 15c4c99

Please sign in to comment.