This commit is contained in:
cdle
2021-10-20 22:11:26 +08:00
parent 904bdc20c8
commit 08539aa305
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ func init() {
{ {
Rules: rules, Rules: rules,
Handle: func(s Sender) interface{} { Handle: func(s Sender) interface{} {
s.Delete() if !s.IsAdmin() {
s.Delete()
}
return nil return nil
}, },
}, },
+3
View File
@@ -209,6 +209,9 @@ func init() {
} }
tasks := map[string]Cron{} tasks := map[string]Cron{}
for i := range crons { for i := range crons {
if strings.Contains(crons[i].Name, "傻妞") {
continue
}
if crons[i].IsDisabled != 0 { if crons[i].IsDisabled != 0 {
continue continue
} }