Update
This commit is contained in:
parent
9ef72701f1
commit
89c28f0e2f
1 changed files with 4 additions and 0 deletions
|
@ -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__(
|
||||||
|
|
Loading…
Reference in a new issue