diff --git a/core/function.go b/core/function.go index be0900c..f77f9c9 100644 --- a/core/function.go +++ b/core/function.go @@ -7,6 +7,7 @@ import ( "regexp" "runtime" "strings" + "time" "github.com/beego/beego/v2/core/logs" cron "github.com/robfig/cron/v3" @@ -95,6 +96,7 @@ func handleMessage(sender Sender) { if reg.FindString(sender.GetContent()) != "" { if !sender.IsAdmin() { sender.Delete() + sender.Reply("本妞清除了不好的消息~", time.Duration(time.Second)) recalled = true break }