mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-05-12 11:36:38 +08:00
Update smzdm_task.js
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user