mirror of
https://github.com/awfufu/go-hurobot.git
synced 2026-03-01 13:39:42 +08:00
24 lines
779 B
Go
24 lines
779 B
Go
package main
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"go-hurobot/qbot"
|
|
)
|
|
|
|
func customReply(c *qbot.Client, msg *qbot.Message) {
|
|
// 2025-03-08 晚上,让 bot 在某 mc 群发电加的
|
|
if msg.GroupID == 738943282 {
|
|
if strings.Contains(msg.Raw, "厉厉厉害害") || strings.Contains(msg.Raw, "厉厉害害害") {
|
|
return
|
|
} else if strings.Contains(msg.Raw, "厉厉害害") {
|
|
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.Raw, "厉厉害害", "可可爱爱", -1), false)
|
|
} else if strings.Contains(msg.Raw, "厉害害") {
|
|
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.Raw, "厉害害", "可爱爱", -1), false)
|
|
} else if strings.Contains(msg.Raw, "厉害") {
|
|
c.SendGroupMsg(msg.GroupID, strings.Replace(msg.Raw, "厉害", "可爱", -1), false)
|
|
}
|
|
}
|
|
// 2025-03-08 ↑
|
|
}
|