mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
Fix: Load initial channel set to watcher
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2eb12900b9
commit
0984aeb60b
1 changed files with 6 additions and 0 deletions
6
main.go
6
main.go
|
@ -103,6 +103,12 @@ func main() {
|
||||||
return
|
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 {
|
if err = startCheck(); err != nil {
|
||||||
log.WithError(err).Fatal("Missing required parameters")
|
log.WithError(err).Fatal("Missing required parameters")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue