From 0984aeb60b80340a07ea6a53182ef865ca8e6b94 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 2 Sep 2021 17:54:28 +0200 Subject: [PATCH] Fix: Load initial channel set to watcher Signed-off-by: Knut Ahlers --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index a7f0882..87dc9f0 100644 --- a/main.go +++ b/main.go @@ -103,6 +103,12 @@ func main() { return } + for _, c := range config.Channels { + if err := twitchWatch.AddChannel(c); err != nil { + log.WithError(err).WithField("channel", c).Error("Unable to add channel to watcher") + } + } + if err = startCheck(); err != nil { log.WithError(err).Fatal("Missing required parameters") }