Small changes :)

This commit is contained in:
Christopher Cookman 2024-08-06 23:40:46 -06:00
parent 07fdb22623
commit 2988d94fa6
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42
2 changed files with 7 additions and 13 deletions

View file

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

View file

@ -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
});
}
});