mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 修复at信息未被移除出prompt的问题
This commit is contained in:
parent
93459ed94e
commit
cfbad0972b
1 changed files with 2 additions and 1 deletions
|
|
@ -531,7 +531,8 @@ export class chatgpt extends plugin {
|
|||
if (e.user_id == Bot.uin) return false
|
||||
prompt = e.raw_message.trim()
|
||||
if (e.isGroup) {
|
||||
let me = e.group.pickMember(Bot.uin)
|
||||
let mm = await this.e.group.getMemberMap()
|
||||
let me = mm.get(Bot.uin)
|
||||
let card = me.card
|
||||
let nickname = me.nickname
|
||||
prompt = prompt.replace(`@${card}`, '').trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue