Small changes :)
This commit is contained in:
parent
07fdb22623
commit
2988d94fa6
|
@ -61,17 +61,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "resend",
|
"name": "resend",
|
||||||
"description": "Resend the verification code to a phone number",
|
"description": "Resend the verification code",
|
||||||
"type": 1,
|
"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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "list",
|
"name": "list",
|
||||||
|
|
7
index.js
7
index.js
|
@ -234,10 +234,13 @@ client.on("interactionCreate", async (interaction) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
} else {
|
} else {
|
||||||
sendVerificationCode(accountNumber);
|
|
||||||
interaction.reply({
|
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
|
ephemeral: true
|
||||||
|
}).then(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
sendVerificationCode(accountNumber);
|
||||||
|
}, 5000); // Wait 5 seconds before calling so user has time to read message
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue