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__(