add missing returns

This commit is contained in:
lyx0 2021-10-31 13:54:57 +01:00
parent 1f651f6058
commit 8b4b61b362
6 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,7 @@ func BotStatus(channel, name string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, "Something went wrong FeelsBadMan")
log.Error(err)
return
}
nb.Send(channel, resp)

View file

@ -12,6 +12,7 @@ func Followage(channel, streamer, username string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, fmt.Sprint(err))
return
}
nb.Send(channel, ivrResponse)

View file

@ -14,6 +14,7 @@ func Game(channel, name string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, "Something went wrong FeelsBadMan")
log.Error(err)
return
}
reply := fmt.Sprintf("@%s was last seen playing: %s", name, game)

View file

@ -14,6 +14,7 @@ func Title(channel, target string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, "Something went wrong FeelsBadMan")
log.Error(err)
return
}
reply := fmt.Sprintf("%s title is: %s", target, title)

View file

@ -14,6 +14,7 @@ func Uptime(channel, name string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, "Something went wrong FeelsBadMan")
log.Error(err)
return
}
nb.Send(channel, resp)

View file

@ -14,6 +14,7 @@ func Weather(channel, location string, nb *bot.Bot) {
if err != nil {
nb.Send(channel, "Something went wrong FeelsBadMan")
log.Error(err)
return
}
nb.Send(channel, reply)