refactor: optimize some functions without changing functionality

This commit is contained in:
AkashiNeko
2025-03-12 20:51:15 +08:00
parent c962c5b69b
commit c50c5595f9
3 changed files with 58 additions and 53 deletions

View File

@@ -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)
}