Browse Source

Now handlers are on Goroutines

master^2
witer33 2 years ago
parent
commit
81aa648a32
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      twitchbot/bot.go

+ 1
- 1
twitchbot/bot.go View File

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

Loading…
Cancel
Save