Start() is blocking....
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

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
1 changed files with 3 additions and 1 deletions

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()
}
}