diff --git a/defSet/json/mys.json b/defSet/json/mys.json index 4842d6f..997f983 100644 --- a/defSet/json/mys.json +++ b/defSet/json/mys.json @@ -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", diff --git a/model/mys/utils.js b/model/mys/utils.js index d3c0ee0..6849ff4 100644 --- a/model/mys/utils.js +++ b/model/mys/utils.js @@ -56,8 +56,10 @@ 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) - nickname = info.card || info.nickname + 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)) {