mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
喵喵更新自动重启功能适配node app启动的Yunzai-Bot
This commit is contained in:
parent
fe9092bcf7
commit
a690aa72e8
@ -186,8 +186,7 @@ export async function updateMiaoPlugin(e) {
|
||||
}
|
||||
exec(command, function (error, stdout, stderr) {
|
||||
if (error) {
|
||||
redis.del('miao:restart-msg');
|
||||
e.reply("重启失败!\nError code: " + error.code + "\n" + error.stack + "\n 请稍后重试。");
|
||||
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