]> jfr.im git - erebus.git/commitdiff
Twitch module message altered
authorConny Sjöblom <redacted>
Wed, 5 Feb 2014 20:44:44 +0000 (22:44 +0200)
committerConny Sjöblom <redacted>
Wed, 5 Feb 2014 20:44:44 +0000 (22:44 +0200)
modules/twitch.py

index fdd7b32ea7e5bcf07dcf3dcc8da296ca49d83929..c0838576ea38739ecb99c8a2873a7d99589eb819 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.')