fblook/module/background/background.go
2018-09-22 10:10:27 +08:00

15 lines
196 B
Go

package background
import (
"github.com/robfig/cron"
)
var c *cron.Cron
// SetBackground -
func SetBackground() {
c = cron.New()
c.AddFunc("0 */2 * * * *", getFacebookPageData)
c.Start()
}