update
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user