@@ -24,6 +24,7 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
|
|||||||
"""
|
"""
|
||||||
Starts the loop when bot is ready.
|
Starts the loop when bot is ready.
|
||||||
"""
|
"""
|
||||||
|
print("on ready")
|
||||||
await self.bot.wait_until_ready()
|
await self.bot.wait_until_ready()
|
||||||
# pylint doesn't recognize that periodic_update_guild_data is subclassed from tasks.loop.
|
# pylint doesn't recognize that periodic_update_guild_data is subclassed from tasks.loop.
|
||||||
await self.do_thing.start() # pylint: disable=no-member
|
await self.do_thing.start() # pylint: disable=no-member
|
||||||
@@ -31,4 +32,5 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
|
|||||||
@tasks.loop(time=time(hour=0, tzinfo=timezone("GMT")))
|
@tasks.loop(time=time(hour=0, tzinfo=timezone("GMT")))
|
||||||
async def do_thing(self):
|
async def do_thing(self):
|
||||||
""" """
|
""" """
|
||||||
|
print("loop")
|
||||||
await self.election.check_date()
|
await self.election.check_date()
|
||||||
|
|||||||
Reference in New Issue
Block a user