This commit is contained in:
insert 2024-08-09 16:11:08 -04:00
parent 9ef72701f1
commit 89c28f0e2f
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -54,6 +54,10 @@ class ApplicationView(nextcord.ui.View):
class ApplicationModal(nextcord.ui.Modal): class ApplicationModal(nextcord.ui.Modal):
def __init__(self,user,bot): def __init__(self,user,bot):
res = await bot.cur.execute("SELECT name FROM sqlite_master WHERE name='userinfo'")
if await res.fetchone() is None:
await bot.cur.execute("CREATE TABLE userinfo(serverid INTEGER, userid INTEGER, imagelink TEXT, chance INTEGER)")
await bot.db.commit()
self.victim = user self.victim = user
self.bot = bot self.bot = bot
super().__init__( super().__init__(