From 1c2159631593b90a0c97a8052b8a84d4bf2795ad Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Sat, 28 Oct 2023 12:30:46 +0800 Subject: [PATCH] wait 10s before sending email to admin (fix #6) --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 4080022..21339a4 100644 --- a/src/index.js +++ b/src/index.js @@ -106,6 +106,8 @@ const nodemailer = require("nodemailer"); } if (globalConfig.sendMail == true) { + log.info(`暂停:10秒`); + await sleep(10000); log.info(`运行完毕!丢出日志`); SendLog( transporter,