added notify task
This commit is contained in:
parent
15a27af994
commit
765be0673b
1
main.go
1
main.go
|
@ -37,6 +37,7 @@ func main() {
|
||||||
scheduler := gocron.NewScheduler(time.UTC)
|
scheduler := gocron.NewScheduler(time.UTC)
|
||||||
tasker := echotron.NewAPI(token)
|
tasker := echotron.NewAPI(token)
|
||||||
scheduler.Every(30).Seconds().Do(func() { kicker.TaskKickOldUsers(&tasker) })
|
scheduler.Every(30).Seconds().Do(func() { kicker.TaskKickOldUsers(&tasker) })
|
||||||
|
scheduler.Every(30).Seconds().Do(func() { kicker.TaskNotifyUsers(&tasker) })
|
||||||
scheduler.StartAsync()
|
scheduler.StartAsync()
|
||||||
Bot.Start()
|
Bot.Start()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue