stop holding the register command open to expire the verification

Expiry is enforced by the verification server and the cleanup loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-10-23 02:38:10 +02:00
1 parent 051a9788c4
commit da06dfd5c1
1 file changed
+1 -11
+1 -11
View File
@@ -503,7 +503,7 @@ class Galtinn(commands.Cog):
@tasks.loop(minutes=2)
async def verification_cleanup(self):
"""
Clean up any pending verifications that have expired. This is in case the register command fails to do so
Clean up any pending verifications that have expired
"""
await self.bot.db.execute(
@@ -588,16 +588,6 @@ class Galtinn(commands.Cog):
)
await interaction.followup.send(embed=embed, ephemeral=True)
# Remove verification after 2 minutes
await asyncio.sleep(120)
await self.bot.db.execute(
"""
DELETE FROM galtinn_verification
WHERE discord_id = $1;
""",
interaction.user.id,
)
@app_commands.checks.bot_has_permissions(embed_links=True)
@galtinn_group.command(name="slett", description="Fjern koblingen mellom Galtinnbrukeren din og Discord")
async def delete(self, interaction: discord.Interaction):