mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: try to fix #732
This commit is contained in:
parent
5f2b88851f
commit
11fb6f5281
1 changed files with 40 additions and 36 deletions
|
|
@ -399,7 +399,7 @@ export async function createServer () {
|
|||
quotable: {
|
||||
user_id: _Bot.uin,
|
||||
user_name: _Bot.nickname
|
||||
},
|
||||
}
|
||||
}
|
||||
await connection.socket.send(JSON.stringify(messageData))
|
||||
}
|
||||
|
|
@ -412,12 +412,12 @@ export async function createServer () {
|
|||
user_id: item,
|
||||
nickname: friend.nickname,
|
||||
group: {
|
||||
isGroup: false,
|
||||
isGroup: false
|
||||
},
|
||||
quotable: {
|
||||
user_id: _Bot.uin,
|
||||
user_name: _Bot.nickname
|
||||
},
|
||||
}
|
||||
}
|
||||
await connection.socket.send(JSON.stringify(messageData))
|
||||
})
|
||||
|
|
@ -443,6 +443,7 @@ export async function createServer () {
|
|||
return request
|
||||
}
|
||||
Bot.on('message', e => {
|
||||
try {
|
||||
e.message = e.message.map(item => {
|
||||
if (item.type === 'at') {
|
||||
let user
|
||||
|
|
@ -481,6 +482,9 @@ export async function createServer () {
|
|||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
logger.debug(error)
|
||||
}
|
||||
})
|
||||
server.get('/ws', {
|
||||
websocket: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue