Skip to content

Commit

Permalink
perf: 优化群聊时@机器人的消息回复逻辑,直接@机器人返回帮助信息 (#201)
Browse files Browse the repository at this point in the history
Co-authored-by: 二丫讲梵 <[email protected]>
  • Loading branch information
ffinly and eryajf authored Apr 13, 2023
1 parent 94c738a commit 1b9edc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Start() {
}
return nil
}
if len(msgObj.Text.Content) == 1 || msgObj.Text.Content == "帮助" {
if len(msgObj.Text.Content) == 0 || msgObj.Text.Content == "帮助" {
// 欢迎信息
_, err := msgObj.ReplyToDingtalk(string(dingbot.MARKDOWN), public.Config.Help)
if err != nil {
Expand Down

0 comments on commit 1b9edc5

Please sign in to comment.