mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✏️ 修复摸鱼 cron
This commit is contained in:
parent
ac1c6bc74b
commit
c83d01e977
@ -13,7 +13,7 @@ import (
|
|||||||
func init() { // 插件主体
|
func init() { // 插件主体
|
||||||
// 定时任务每天10点执行一次
|
// 定时任务每天10点执行一次
|
||||||
c := cron.New()
|
c := cron.New()
|
||||||
_, err := c.AddFunc("0 0 10 * * ?", func() { sendNotice() })
|
_, err := c.AddFunc("0 10 * * *", func() { sendNotice() })
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Start()
|
c.Start()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user