From b9cc5c07233a2f5f8c89e7aeb742515df6e90284 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sun, 26 Sep 2021 12:45:19 +0800 Subject: [PATCH] update --- core/reply.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/reply.go b/core/reply.go index 259fef8..3b5fa2f 100644 --- a/core/reply.go +++ b/core/reply.go @@ -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{}