always insert user into table to maintain db constraints

This commit is contained in:
Infinidoge 2024-12-28 03:57:47 -05:00
parent bd6466ff5f
commit 88e967eb1a
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

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