diff --git a/commands.json b/commands.json index 9d9d173..d24e475 100644 --- a/commands.json +++ b/commands.json @@ -61,17 +61,8 @@ }, { "name": "resend", - "description": "Resend the verification code to a phone number", - "type": 1, - "options": [ - { - "name": "phone_number", - "description": "The 10 digit US phone number to call when the system is triggered", - "type": 3, - "required": true, - "autocomplete": true - } - ] + "description": "Resend the verification code", + "type": 1 }, { "name": "list", diff --git a/index.js b/index.js index 004a8ab..a1bd8d7 100644 --- a/index.js +++ b/index.js @@ -234,10 +234,13 @@ client.on("interactionCreate", async (interaction) => { if (err) { console.error(err); } else { - sendVerificationCode(accountNumber); interaction.reply({ - content: `Account created. Please verify your account by entering the verification code sent to ${phone_number}`, + content: `Account created. Our system will call you shortly with a verification code. Please enter that code into \`/verify\``, ephemeral: true + }).then(() => { + setTimeout(() => { + sendVerificationCode(accountNumber); + }, 5000); // Wait 5 seconds before calling so user has time to read message }); } });