From 88e967eb1a04595428cfcbc5992b0094534d3519 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sat, 28 Dec 2024 03:57:47 -0500 Subject: [PATCH] always insert user into table to maintain db constraints --- nomen/notifications.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nomen/notifications.py b/nomen/notifications.py index 884f04e..9bb9f8e 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -137,6 +137,9 @@ class Notifications(Cog): await handle_triggers(ctx, message) + async def cog_before_invoke(ctx): + await ctx.bot.db.execute("INSERT OR IGNORE INTO users (userid) VALUE(?)", (ctx.author.id,)) + @group( aliases=["kw", "notification", "notifications", "notif", "noti"], invoke_without_command=True,