From 3c853f74ac4d7473be0c06c43f94c222ce760423 Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 11 Aug 2024 15:37:23 -0400 Subject: [PATCH] Update --- rolebuttons.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rolebuttons.py b/rolebuttons.py index 47a6b1b..cff9a24 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -4,6 +4,9 @@ from nextcord import TextInputStyle from random import randint import aiosqlite as sqlite3 import aiohttp +import asyncio +import traceback +import sys from urllib.parse import urlparse import os buttonlist = [] @@ -52,6 +55,7 @@ class rolebutton(commands.Cog): @commands.Cog.listener('on_ready') async def roleready(self): + await asyncio.sleep(10) for g in self.bot.guilds: res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {g.id}") res = await res.fetchall()