From 81aa648a32fb6c0793ff1ec285f552f72a28350c Mon Sep 17 00:00:00 2001 From: witer33 Date: Mon, 3 Jan 2022 16:45:08 +0100 Subject: [PATCH] Now handlers are on Goroutines --- twitchbot/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitchbot/bot.go b/twitchbot/bot.go index b1db99a..977915c 100644 --- a/twitchbot/bot.go +++ b/twitchbot/bot.go @@ -71,7 +71,7 @@ func (event *EventHandler) configure(bot *Bot) { bot.client.AddHandler("PRIVMSG", func(command *Command) bool { message := ParseMessage(command, bot) for _, handler := range event.messageHandlers { - handler(bot, message) + go handler(bot, message) } return true })