mirror of
https://github.com/awfufu/go-hurobot.git
synced 2026-03-01 13:39:42 +08:00
feat: Added sh command
This commit is contained in:
20
custom_reply.go
Normal file
20
custom_reply.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"go-hurobot/qbot"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func customReply(c *qbot.Client, msg *qbot.Message) {
|
||||
// 2025-03-08 晚上,让 bot 在某 mc 群发电加的
|
||||
if msg.GroupID == 158045531 {
|
||||
if strings.Contains(msg.RawMessage, "厉厉厉害害害") {
|
||||
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)
|
||||
}
|
||||
}
|
||||
// 2025-03-08 ↑
|
||||
}
|
||||
Reference in New Issue
Block a user