added notify task

This commit is contained in:
nefrace 2023-02-14 00:56:18 +03:00
parent 15a27af994
commit 765be0673b
1 changed files with 1 additions and 0 deletions

View File

@ -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()
} }