@ -56,6 +56,9 @@ class DiscordClient(commands.Bot):
await self.tree.sync(guild=discord.Object(self.main_server_id))
await self.tree.sync()
self.loop.create_task(self.load_extensions["stats_loader"].task())
self.loop.create_task(self.load_extensions["stats_presence"].task())
def setup_events(self):
@self.event
async def on_ready():
@ -6,7 +6,6 @@ class Extension:
core = None
def __init__(self, core):
self.core = core
self.core.loop.create_task(self.task())
async def task(self, timeout = 60):
await self.core.wait_until_ready()
@ -8,7 +8,6 @@ class Extension:
async def task(self, timeout = 3):