mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2025-02-01 08:02:32 +00:00
增加#喵喵图片更新 的文件个数输出
This commit is contained in:
parent
93b3ff01a2
commit
4f294a500a
@ -115,6 +115,11 @@ export async function updateRes(e) {
|
||||
e.reply("素材已经是最新了~");
|
||||
return true;
|
||||
}
|
||||
let numRet = /(\d*) files changed,/.exec(stdout);
|
||||
if (numRet && numRet[1]) {
|
||||
e.reply(`更新成功,更新${numRet[1]}个素材~`);
|
||||
return true;
|
||||
}
|
||||
if (error) {
|
||||
e.reply("更新失败!\nError code: " + error.code + "\n" + error.stack + "\n 请稍后重试。");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user