]> jfr.im git - erebus.git/blobdiff - modules/twitch.py
test
[erebus.git] / modules / twitch.py
index 6357459e7065952f78552917ab9a5431d7930a8c..ba7e81f5cede41ee80ee91fd12a2e28b43803cc8 100644 (file)
@@ -40,6 +40,6 @@ def privmsg_hook(bot, line):
                        respdata = urllib2.urlopen(url).read()
                        twitch = json.loads(respdata)
                        try:
-                               bot.msg(line.split()[2], 'Twitch: %s (%s)' % (twitch[0]['channel']['status'], twitch[0]['channel']['meta_game']))
+                               bot.msg(line.split()[2], 'Twitch: %s (%s playing %s)' % (twitch[0]['channel']['status'], twitch[0]['channel']['login'], twitch[0]['channel']['meta_game']))
                        except:
                                bot.msg(line.split()[2], 'Twitch: Channel offline.')