mirror of
https://github.com/awfufu/go-hurobot.git
synced 2026-03-01 13:39:42 +08:00
refactor: optimize some functions without changing functionality
This commit is contained in:
@@ -12,6 +12,8 @@ func customReply(c *qbot.Client, msg *qbot.Message) {
|
||||
return
|
||||
} else if strings.Contains(msg.RawMessage, "厉厉害害") {
|
||||
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.RawMessage, "厉厉害害", "可可爱爱", -1), false)
|
||||
} else if strings.Contains(msg.RawMessage, "厉害害") {
|
||||
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.RawMessage, "厉害害", "可爱爱", -1), false)
|
||||
} else if strings.Contains(msg.RawMessage, "厉害") {
|
||||
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.RawMessage, "厉害", "可爱", -1), false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user