mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 14:30:10 +08:00
✏️ 小修正
This commit is contained in:
parent
01853768db
commit
37d27e07e9
@ -14,7 +14,7 @@ func init() { // 插件主体
|
||||
// 定时任务每天10点执行一次
|
||||
c := cron.New()
|
||||
_, err := c.AddFunc("0 10 * * *", func() { sendNotice() })
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
c.Start()
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user