From becc8f0210527d848336f6b595a1491695ad83e0 Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Tue, 2 Dec 2025 22:37:32 +0000 Subject: [PATCH] Add verification code storage for Discord usernames Updates the `/verify` command in discord-bot/commands/verify.js to include the Discord username when storing verification codes in the `discord_verifications` table. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8bd9c239-20ba-45f9-afec-76bd4f2adfd0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/saoW2ee Replit-Helium-Checkpoint-Created: true --- .replit | 2 +- discord-bot/commands/verify.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.replit b/.replit index fb6da282..b28a4fdd 100644 --- a/.replit +++ b/.replit @@ -1,4 +1,4 @@ -modules = ["nodejs-20", "web"] +modules = ["nodejs-20", "web", "postgresql-16"] [agent] expertMode = true diff --git a/discord-bot/commands/verify.js b/discord-bot/commands/verify.js index 4e5e6c45..d9f30e79 100644 --- a/discord-bot/commands/verify.js +++ b/discord-bot/commands/verify.js @@ -40,10 +40,11 @@ module.exports = { .toUpperCase(); const expiresAt = new Date(Date.now() + 15 * 60 * 1000); // 15 minutes - // Store verification code + // Store verification code with Discord username await supabase.from("discord_verifications").insert({ discord_id: interaction.user.id, verification_code: verificationCode, + username: interaction.user.username, expires_at: expiresAt.toISOString(), });