This commit is contained in:
cdle
2021-09-26 12:45:19 +08:00
parent e1834604ff
commit b9cc5c0723
+8
View File
@@ -24,11 +24,19 @@ type Reply struct {
Get string
Regex string
Template string
Disappear bool
}
Replace [][]string
}
func InitReplies() {
appreciate := Reply{
Rules: []string{"^打赏", "^赞赏"},
Type: "url",
}
appreciate.Request.Url = "https://gitee.com/aiancandle/sillyGirl/raw/main/appreciate.jpg"
appreciate.Request.ResponseType = "image"
Config.Replies = append(Config.Replies, appreciate)
for _, v := range Config.Replies {
reply := v
var handler func(s Sender) interface{}