From 77d329ac45a8692a641b98bb1aa66e9a2e9ccb25 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 31 Dec 2024 18:15:33 -0500 Subject: [PATCH] fix before invoke hook to properly add user default settings --- nomen/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomen/notifications.py b/nomen/notifications.py index 93bc234..b84fe18 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -145,8 +145,8 @@ 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,)) + async def cog_before_invoke(self, ctx): + await ctx.bot.db.execute("INSERT OR IGNORE INTO users (user_id) VALUES(?)", (ctx.author.id,)) @group( aliases=["kw", "notification", "notifications", "notif", "noti"],