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

feat: 优化与钉钉机器人交互相关的一些细节 #60

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

iblogc
Copy link
Contributor

@iblogc iblogc commented Mar 2, 2023

fix: @机器人时,如果是这样发帮助@机器人是不会正确的命中帮助指令, 因@在内容后面,则消息内容最前面不会有空格, 所以优化了 Commands 的判断: strings.TrimSpace(msgObj.Text.Content) 后再判断
fix: 修改帮助文档中的串聊 emoji(原 emoji 在 Windows 版钉钉中不显示/显示为口)
refactor: 机器人回复消息时,@提问者使用"at": {"atUserIds": [staff_id]}达到真正的@作用
image

…ommands 的判断: strings.TrimSpace(msgObj.Text.Content) 后再判断

fix: 修改帮助文档中的串聊 emoji(原图片在 Windows 版钉钉中不显示)
refactor: 机器人回复消息时,@提问者使用`"at": {"atUserIds": [staff_id]}`达到真正的@作用
![image](https://user-images.githubusercontent.com/3283023/222373249-30f91f6e-0598-46b2-ac6f-3c9da55c7195.png)
@eryajf eryajf added the feature label Mar 2, 2023
@eryajf eryajf changed the title fix: @机器人时,如果是这样发帮助@机器人是不会正确的命中帮助指令, 因@在内容后面,则消息内容最前面不会有空格, 所以优化了 C… feat: 优化与钉钉机器人交互相关的一些细节 Mar 2, 2023
@eryajf eryajf merged commit addb086 into eryajf:main Mar 2, 2023
@eryajf
Copy link
Owner

eryajf commented Mar 2, 2023

@iblogc 感谢。一个小小建议,pr的时候标题尽可能简洁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants