Fix: Load initial channel set to watcher

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-02 17:54:28 +02:00
parent 2eb12900b9
commit 0984aeb60b
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

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