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)
|
||||
tasker := echotron.NewAPI(token)
|
||||
scheduler.Every(30).Seconds().Do(func() { kicker.TaskKickOldUsers(&tasker) })
|
||||
scheduler.Every(30).Seconds().Do(func() { kicker.TaskNotifyUsers(&tasker) })
|
||||
scheduler.StartAsync()
|
||||
Bot.Start()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue