refactor
This commit is contained in:
parent
fe2e22ba17
commit
e90fa55862
2 changed files with 50 additions and 15 deletions
16
src/bot.ts
16
src/bot.ts
|
@ -121,21 +121,25 @@ export class EpitlsBot {
|
|||
|
||||
function message_command_response_sending_email(email: string) {
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle("`🟡`| Verification")
|
||||
.setDescription(`Sending a verification link to your email \`${email}\`.`);
|
||||
.setTitle("`🟡`| Vérification")
|
||||
.setDescription(`
|
||||
Un lien de vérification a été envoyé par e-mail à \`${email}\`.
|
||||
Le lien expirera dans 5 minutes.
|
||||
**Il pourraît être arrivé dans \`Courrier indésirable\`.**
|
||||
`.trim());
|
||||
return { embeds: [embed] };
|
||||
}
|
||||
|
||||
function message_command_response_error(msg: string) {
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle("`❌`| Verification")
|
||||
.setDescription(`An error occured\n\`${msg}\``);
|
||||
.setTitle("`❌`| Vérification")
|
||||
.setDescription(`Échec de la vérification :\n\`${msg}\``);
|
||||
return { embeds: [embed] };
|
||||
}
|
||||
|
||||
function message_command_response_success() {
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle("`✅`| Verification")
|
||||
.setDescription("Your email was associated with this account.");
|
||||
.setTitle("`✅`| Vérification")
|
||||
.setDescription("Votre e-mail CRI a bien été associé à ce compte Discord.");
|
||||
return { embeds: [embed] };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue