This commit is contained in:
insert 2024-08-11 15:37:23 -04:00
parent ebb422a984
commit 3c853f74ac
Signed by: insert
GPG key ID: A70775C389ACF105

View file

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