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()