modified: apps/pixiv.js

This commit is contained in:
yeyang
2022-11-10 10:01:42 +08:00
parent 1416ca3bf7
commit 3d7ec66cd5
2 changed files with 7 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ export class anotice extends plugin {
await common.sleep(2000)
}
let msg = [
`本次共${yes ? '同意' : '拒绝'}${FriendAdd.length}条申请\n成功:${success.length}\n失败:${fail.length}`
`本次共${yes ? '同意' : '拒绝'}${FriendAdd.length}好友申请\n成功:${success.length}\n失败:${fail.length}`
]
if (!lodash.isEmpty(success)) msg.push([`以下为成功的名单:\n`, success.join("\n")])
if (!lodash.isEmpty(fail)) msg.push([`以下为失败的名单:\n`, fail.join("\n")])
@@ -401,7 +401,7 @@ export class anotice extends plugin {
if (!lodash.isEmpty(onewayFriend)) msg.push(`单向好友:${onewayFriend.length}`)
if (e.isGroup) {
GroupAdd = GroupAdd.filter(item => item.group_id == e.group.id)
if (!lodash.isEmpty(GroupAdd)) msg.push(`当前群申请:${GroupAdd.length}`)
if (!lodash.isEmpty(GroupAdd)) msg.push(`当前群申请:${GroupAdd.length}`)
}
if (lodash.isEmpty(msg)) return e.reply("好耶一条请求都没有哦o( ❛ᴗ❛ )o", true)
msg.unshift("以下为暂未处理的请求")

View File

@@ -93,8 +93,11 @@ export class example extends plugin {
for (let i of url) {
img.push(segment.image(i))
}
Cfg.recallsendMsg(e, img)
if (img.length == 1) {
Cfg.recallsendMsg(e, img)
} else {
Cfg.getCDsendMsg(e, img, false)
}
return true;
}