From 21de9bccd31c80239825921daad84d1e6483e3f7 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Sat, 31 Aug 2024 02:59:28 +0100 Subject: [PATCH] add from name, change email template --- bot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.js b/bot.js index beee15b..4edcb13 100644 --- a/bot.js +++ b/bot.js @@ -96,13 +96,13 @@ client.on("messageCreate", async (message) => { const emailHtml = ` -

Your Verification Code

+

Your Esports Verification Code

Hi there,

-

Thank you for requesting verification. Your verification code is:

+

Thank you for requesting verification. Your Esports verification code is:

${verificationCode}

-

This code is valid for 10 minutes. Please enter it in the Discord channel using the command !code your_code.

+

This code is valid for 10 minutes. Please enter it in the verification Discord channel using the command !code your_code.

If you did not request this code, please ignore this email.

Best regards,
Esports Committee

@@ -111,7 +111,7 @@ client.on("messageCreate", async (message) => { try { await transporter.sendMail({ - from: process.env.EMAIL_USER, + from: `"${process.env.EMAIL_NAME}" <${process.env.EMAIL_USER}>`, to: email, subject: "Esports Verification Code", html: emailHtml, // Use HTML content