update
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/beego/beego/v2/core/logs"
|
"github.com/beego/beego/v2/core/logs"
|
||||||
cron "github.com/robfig/cron/v3"
|
cron "github.com/robfig/cron/v3"
|
||||||
@@ -95,6 +96,7 @@ func handleMessage(sender Sender) {
|
|||||||
if reg.FindString(sender.GetContent()) != "" {
|
if reg.FindString(sender.GetContent()) != "" {
|
||||||
if !sender.IsAdmin() {
|
if !sender.IsAdmin() {
|
||||||
sender.Delete()
|
sender.Delete()
|
||||||
|
sender.Reply("本妞清除了不好的消息~", time.Duration(time.Second))
|
||||||
recalled = true
|
recalled = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user