mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 还是名片和昵称的恩怨情仇
This commit is contained in:
parent
ba0c382886
commit
3dee3ccec7
1 changed files with 2 additions and 0 deletions
|
|
@ -571,6 +571,8 @@ export class chatgpt extends plugin {
|
|||
} else if (card.startsWith(nickname)) {
|
||||
// 例如nickname是"十二",card是"十二|本月已发送1000条消息"
|
||||
prompt = prompt.replace(`@${card}`, '').trim()
|
||||
// 如果是好友,显示的还是昵称
|
||||
prompt = prompt.replace(`@${nickname}`, '').trim()
|
||||
} else {
|
||||
// 互不包含,分别替换
|
||||
if (nickname) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue