From d18e6eaa0fdd5c30881e4749b549441133661c0a Mon Sep 17 00:00:00 2001 From: gsd Date: Fri, 29 Sep 2023 14:56:17 +0300 Subject: [PATCH] q1 --- bot.py | 2 +- other_ext/register.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index ab98332..34be489 100644 --- a/bot.py +++ b/bot.py @@ -58,7 +58,7 @@ class DiscordClient(commands.Bot): await self.tree.sync(guild=discord.Object(self.main_server_id)) await self.tree.sync() - await self.core.wait_until_ready() + await self.wait_until_ready() print(f"[init] check exts for have prepairs") for ext_name, ext in self.loaded_extensions.items(): diff --git a/other_ext/register.py b/other_ext/register.py index be34d74..ccb707b 100644 --- a/other_ext/register.py +++ b/other_ext/register.py @@ -122,7 +122,7 @@ class Extension: return await interaction.followup.send(content=message, ephemeral=True) - async def prepair(self): + async def give_roles_to_auth(self): not_synced = await self.get_authusers_without_sync() for uid in not_synced: try: @@ -167,7 +167,7 @@ class Extension: await asyncio.sleep(5) print("[register] update register cache who dont have role") while True: - await self.prepair() + await self.give_roles_to_auth() await asyncio.sleep(timeout) async def updater(self):