Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

goocarlos
Copy link
Contributor

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

event.js Outdated
return { code: 0 };
}
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
Owner

Choose a reason for hiding this comment

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

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

Copy link
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
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