twitch: streaming

This commit is contained in:
Chris Sexton 2018-12-26 23:23:22 -05:00
parent 13439a436f
commit 73dc6f047d
1 changed files with 4 additions and 4 deletions

View File

@ -222,18 +222,18 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri
} }
if alwaysPrintStatus { if alwaysPrintStatus {
if game == "" { if game == "" {
p.Bot.SendMessage(channel, twitcher.name+" is not screaming.") p.Bot.SendMessage(channel, twitcher.name+" is not streaming.")
} else { } else {
p.Bot.SendMessage(channel, twitcher.name+" is screaming "+game+" at "+twitcher.URL()) p.Bot.SendMessage(channel, twitcher.name+" is streaming "+game+" at "+twitcher.URL())
} }
} else if game == "" { } else if game == "" {
if twitcher.game != "" { if twitcher.game != "" {
p.Bot.SendMessage(channel, twitcher.name+" just stopped screaming.") p.Bot.SendMessage(channel, twitcher.name+" just stopped streaming.")
} }
twitcher.game = "" twitcher.game = ""
} else { } else {
if twitcher.game != game { if twitcher.game != game {
p.Bot.SendMessage(channel, twitcher.name+" just started screaming "+game+" at "+twitcher.URL()) p.Bot.SendMessage(channel, twitcher.name+" just started streaming "+game+" at "+twitcher.URL())
} }
twitcher.game = game twitcher.game = game
} }