mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 修复pickMember问题
This commit is contained in:
parent
54f68132f9
commit
b110531135
1 changed files with 5 additions and 3 deletions
|
|
@ -514,9 +514,11 @@ 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()
|
||||
if (e.isGroup) {
|
||||
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