always insert user into table to maintain db constraints
This commit is contained in:
parent
bd6466ff5f
commit
88e967eb1a
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ class Notifications(Cog):
|
||||||
|
|
||||||
await handle_triggers(ctx, message)
|
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(
|
@group(
|
||||||
aliases=["kw", "notification", "notifications", "notif", "noti"],
|
aliases=["kw", "notification", "notifications", "notif", "noti"],
|
||||||
invoke_without_command=True,
|
invoke_without_command=True,
|
||||||
|
|
Loading…
Reference in a new issue