Start() is blocking....
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2020-07-14 21:52:33 +02:00
parent 34db02c548
commit b891b74d4b

View file

@ -196,10 +196,12 @@ func main() {
Database: *persistentData,
Config: config,
}
myBot.Start()
}
go func() {
rgb.YPrintf("[%s] Starting webserver on port %s\n", irc.TimeStamp(), "5353")
webserver.HandleHTTP(&myBot)
}()
if ircOauthPath != "" {
myBot.Start()
}
}