This commit is contained in:
root committed 2018-09-09 23:36:56 +08:00
1 parent 0eb7d69a16
commit 00147fc4d0
12 files changed
+1043

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
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() {}