fblook/module/background/background.go

15 lines
196 B
Go
Raw Normal View History

2018-09-21 14:58:41 +00:00
package background
import (
"github.com/robfig/cron"
)
var c *cron.Cron
// SetBackground -
func SetBackground() {
c = cron.New()
2018-09-22 02:10:27 +00:00
c.AddFunc("0 */2 * * * *", getFacebookPageData)
2018-09-21 14:58:41 +00:00
c.Start()
}