mtfosbot/module/background/background.go

15 lines
216 B
Go
Raw Normal View History

2018-09-09 15:36:56 +00:00
package background
import "github.com/robfig/cron"
var c *cron.Cron
// SetBackground -
func SetBackground() {
c = cron.New()
c.AddFunc("0 */2 * * * *", readFacebookPage)
c.Start()
}
func readFacebookPage() {}