mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 11:00:51 +08:00
fix
This commit is contained in:
parent
d2e32faa08
commit
1d15af86ad
@ -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",
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user