fix(aurora): reverted part of an old change

This commit is contained in:
Seaswimmer 2024-01-01 12:47:13 -05:00
parent 497c287019
commit 50c5785245
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -68,10 +68,10 @@ class Aurora(commands.Cog):
self.bot = bot self.bot = bot
register_config(config) register_config(config)
disable_dateutil() disable_dateutil()
self.handle_expiry.start() # pylint: disable=no-member
async def cog_load(self): async def cog_load(self):
"""This method prepares the database schema for all of the guilds the bot is currently in, and starts the handle_expiry task.""" """This method prepares the database schema for all of the guilds the bot is currently in."""
await self.handle_expiry.start() # pylint: disable=no-member
guilds: list[discord.Guild] = self.bot.guilds guilds: list[discord.Guild] = self.bot.guilds
try: try:
@ -83,7 +83,7 @@ class Aurora(commands.Cog):
return return
async def cog_unload(self): async def cog_unload(self):
await self.handle_expiry.cancel() # pylint: disable=no-member self.handle_expiry.cancel() # pylint: disable=no-member
@commands.Cog.listener('on_guild_join') @commands.Cog.listener('on_guild_join')
async def db_generate_guild_join(self, guild: discord.Guild): async def db_generate_guild_join(self, guild: discord.Guild):