fix before invoke hook to properly add user default settings

This commit is contained in:
Infinidoge 2024-12-31 18:15:33 -05:00
parent 40e55ac316
commit 77d329ac45
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -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"],