Update
This commit is contained in:
parent
ebb422a984
commit
3c853f74ac
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,9 @@ from nextcord import TextInputStyle
|
||||||
from random import randint
|
from random import randint
|
||||||
import aiosqlite as sqlite3
|
import aiosqlite as sqlite3
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
import traceback
|
||||||
|
import sys
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
import os
|
import os
|
||||||
buttonlist = []
|
buttonlist = []
|
||||||
|
@ -52,6 +55,7 @@ class rolebutton(commands.Cog):
|
||||||
|
|
||||||
@commands.Cog.listener('on_ready')
|
@commands.Cog.listener('on_ready')
|
||||||
async def roleready(self):
|
async def roleready(self):
|
||||||
|
await asyncio.sleep(10)
|
||||||
for g in self.bot.guilds:
|
for g in self.bot.guilds:
|
||||||
res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {g.id}")
|
res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {g.id}")
|
||||||
res = await res.fetchall()
|
res = await res.fetchall()
|
||||||
|
|
Loading…
Reference in a new issue