From 765be0673bbb4364afa2f486e993a5327fc975c4 Mon Sep 17 00:00:00 2001 From: nefrace Date: Tue, 14 Feb 2023 00:56:18 +0300 Subject: [PATCH] added notify task --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index fb56ec0..8378b84 100644 --- a/main.go +++ b/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() }