Update smzdm_task.js

This commit is contained in:
Hex
2023-11-17 16:52:21 +08:00
parent 2eabfcab6c
commit cbd5fdcfb1

View File

@@ -1557,7 +1557,8 @@ class SmzdmTaskBot extends SmzdmBot {
} }
} }
!(async () => { if (require.main === module) {
!(async () => {
const cookies = getEnvCookies(); const cookies = getEnvCookies();
if (cookies === false) { if (cookies === false) {
@@ -1594,11 +1595,12 @@ class SmzdmTaskBot extends SmzdmBot {
$.log(); $.log();
await notify.sendNotify($.name, notifyContent); await notify.sendNotify($.name, notifyContent);
})().catch((e) => { })().catch((e) => {
$.log('', `${$.name}, 失败! 原因: ${e}!`, '') $.log('', `${$.name}, 失败! 原因: ${e}!`, '')
}).finally(() => { }).finally(() => {
$.done(); $.done();
}); });
}
module.exports = { module.exports = {
SmzdmTaskBot, SmzdmTaskBot,