fix before invoke hook to properly add user default settings
This commit is contained in:
parent
40e55ac316
commit
77d329ac45
1 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ class Notifications(Cog):
|
||||||
|
|
||||||
await handle_triggers(ctx, message)
|
await handle_triggers(ctx, message)
|
||||||
|
|
||||||
async def cog_before_invoke(ctx):
|
async def cog_before_invoke(self, ctx):
|
||||||
await ctx.bot.db.execute("INSERT OR IGNORE INTO users (userid) VALUE(?)", (ctx.author.id,))
|
await ctx.bot.db.execute("INSERT OR IGNORE INTO users (user_id) VALUES(?)", (ctx.author.id,))
|
||||||
|
|
||||||
@group(
|
@group(
|
||||||
aliases=["kw", "notification", "notifications", "notif", "noti"],
|
aliases=["kw", "notification", "notifications", "notif", "noti"],
|
||||||
|
|
Loading…
Reference in a new issue