2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 11:00:51 +08:00
This commit is contained in:
Ctrlcvs 2023-05-10 09:35:20 +08:00
parent d2e32faa08
commit 1d15af86ad
2 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"forumId": "1",
"name": "崩坏3",
"url": "https://bbs.mihoyo.com/bh3/",
"otherName":["bh3","崩崩崩","崩坏2"]
"otherName":["bh3","崩崩崩","崩坏3"]
},
{
"id": "2",
@ -25,7 +25,7 @@
"forumId": "37",
"name": "未定事件簿",
"url": "https://bbs.mihoyo.com/wd/",
"otherName":["事件簿","未定事件簿"]
"otherName":["事件簿","未定事件簿","未定"]
},
{
"id": "5",

View File

@ -56,9 +56,11 @@ export async function relpyPrivate(userId, msg) {
export async function replyMake(e, _msg, lenght) {
let nickname = Bot.nickname;
if (e.isGroup) {
let info = await Bot.getGroupMemberInfo(e.group_id, Bot.uin)
if(Bot?.getGroupMemberInfo){
let info = await Bot?.getGroupMemberInfo(e.group_id, Bot.uin)
nickname = info.card || info.nickname
}
}
let msgList = [];
for (let [index, item] of Object.entries(_msg)) {
if (index < lenght) {