mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
喵喵更新自动重启适配node app的启动方式
This commit is contained in:
parent
802125727c
commit
fe9092bcf7
@ -186,11 +186,9 @@ export async function updateMiaoPlugin(e) {
|
||||
}
|
||||
exec(command, function (error, stdout, stderr) {
|
||||
if (error) {
|
||||
if (/Yunzai not found/.test(error)) {
|
||||
e.reply("自动重启失败,请手动重启以应用新版喵喵。请使用 npm run start 命令启动Yunzai-Bot");
|
||||
} else {
|
||||
e.reply("重启失败!\nError code: " + error.code + "\n" + error.stack + "\n 请稍后重试。");
|
||||
}
|
||||
redis.del('miao:restart-msg');
|
||||
e.reply("重启失败!\nError code: " + error.code + "\n" + error.stack + "\n 请稍后重试。");
|
||||
Bot.logger.error('重启失败\n${error.stack}');
|
||||
return true;
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user