update
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/beego/beego/v2/core/logs"
|
||||||
cron "github.com/robfig/cron/v3"
|
cron "github.com/robfig/cron/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -141,6 +142,7 @@ func handleMessage(sender Sender) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if matched {
|
if matched {
|
||||||
|
logs.Info("%v ==> %v", sender.GetContent(), rule)
|
||||||
if function.Admin && !sender.IsAdmin() {
|
if function.Admin && !sender.IsAdmin() {
|
||||||
sender.Delete()
|
sender.Delete()
|
||||||
sender.Disappear()
|
sender.Disappear()
|
||||||
|
|||||||
Reference in New Issue
Block a user