Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix(cron): added starting cron scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Nov 14, 2023
1 parent 087aae6 commit 55711bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/komputer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ func main() {
defer mongo.CloseDb()
defer log.FileLog.Close()

schedule.Scheduler.StartAsync()

stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt)
log.Info(context.Background(), "Bot is ready!. Press Ctrl+C to exit")
Expand Down

0 comments on commit 55711bd

Please sign in to comment.