mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: at模式下多接受了一个at信息的问题
This commit is contained in:
parent
fadf9f6a8c
commit
1563e49a25
2 changed files with 4 additions and 1 deletions
|
|
@ -514,6 +514,9 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
if (e.user_id == Bot.uin) return false
|
||||
prompt = e.raw_message.trim()
|
||||
let me = e.group.pickMember(Bot.uin)
|
||||
let card = me.card || me.nickname
|
||||
prompt = prompt.replace(`@${card}`, '').trim()
|
||||
} else {
|
||||
let ats = e.message.filter(m => m.type === 'at')
|
||||
if (!e.atme && ats.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue