Start() is blocking....
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
34db02c548
commit
b891b74d4b
4
main.go
4
main.go
|
@ -196,10 +196,12 @@ func main() {
|
||||||
Database: *persistentData,
|
Database: *persistentData,
|
||||||
Config: config,
|
Config: config,
|
||||||
}
|
}
|
||||||
myBot.Start()
|
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
rgb.YPrintf("[%s] Starting webserver on port %s\n", irc.TimeStamp(), "5353")
|
rgb.YPrintf("[%s] Starting webserver on port %s\n", irc.TimeStamp(), "5353")
|
||||||
webserver.HandleHTTP(&myBot)
|
webserver.HandleHTTP(&myBot)
|
||||||
}()
|
}()
|
||||||
|
if ircOauthPath != "" {
|
||||||
|
myBot.Start()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue