From 89c28f0e2f8aca5bfef5e75bb707ed145ddec825 Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 16:11:08 -0400 Subject: [PATCH] Update --- speechbubble.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/speechbubble.py b/speechbubble.py index c031f28..dd1361c 100644 --- a/speechbubble.py +++ b/speechbubble.py @@ -54,6 +54,10 @@ class ApplicationView(nextcord.ui.View): class ApplicationModal(nextcord.ui.Modal): 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.bot = bot super().__init__(