Skip to content

支持在群聊中与他人同时被 AT 时回复#36

Open
goocarlos wants to merge 3 commits intobestony:masterfrom
goocarlos:master
Open

支持在群聊中与他人同时被 AT 时回复#36
goocarlos wants to merge 3 commits intobestony:masterfrom
goocarlos:master

Conversation

@goocarlos
Copy link
Copy Markdown
Contributor

支持在群聊中与他人同时被 AT 时回复 #8

Comment thread event.js Outdated
}
const userInput = JSON.parse(params.event.message.content);
const question = userInput.text.replace("@_user_1", "");
const question = userInput.text.replace(/@_user_\d+/g, "");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是否可以只对机器人进行置空,对于非机器人,则替换为名字,类似于 @ChatGPT @白宦成 是个怎么样的人变成 白宦成是个怎么样的人

Copy link
Copy Markdown
Owner

@bestony bestony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

辛苦调整一下 at 多个人的逻辑~

@goocarlos goocarlos marked this pull request as draft February 15, 2023 03:25
@goocarlos
Copy link
Copy Markdown
Contributor Author

记录机器人被 @ 时的序号,只置空被 @ 的机器人

@goocarlos goocarlos marked this pull request as ready for review February 15, 2023 03:43
@goocarlos goocarlos marked this pull request as draft February 15, 2023 03:46
@goocarlos goocarlos marked this pull request as ready for review February 15, 2023 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants