mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 02:00:24 +00:00
✏️ 小修正
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user