mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add missing returns
This commit is contained in:
parent
1f651f6058
commit
8b4b61b362
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue