From b891b74d4b719c6a3370a4b074f8f57ea41c87b4 Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Tue, 14 Jul 2020 21:52:33 +0200 Subject: [PATCH] Start() is blocking.... Signed-off-by: Martyn Ranyard --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f44ae10..841427e 100755 --- a/main.go +++ b/main.go @@ -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() + } }