mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
spawn a new goroutine for the ()dl command and for sending messages
This commit is contained in:
parent
230aa530eb
commit
126fb7c1e9
|
@ -84,7 +84,7 @@ func (app *application) handleCommand(message twitch.PrivateMessage) {
|
|||
}
|
||||
|
||||
case "dl":
|
||||
commands.Download(target, cmdParams[1], fileUploaderURL, app.TwitchClient, app.Log)
|
||||
go commands.Download(target, cmdParams[1], fileUploaderURL, app.TwitchClient, app.Log)
|
||||
|
||||
case "mail":
|
||||
app.SendEmail("Test command used!", "This is an email test")
|
||||
|
@ -186,7 +186,7 @@ func (app *application) handleCommand(message twitch.PrivateMessage) {
|
|||
}
|
||||
}
|
||||
if reply != "" {
|
||||
app.Send(target, reply)
|
||||
go app.Send(target, reply)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue