From 989efdf5aeca0f97e70659f778d5624c1852c4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Thu, 14 Dec 2017 12:27:52 +0100 Subject: [PATCH] streams details and permissions --- raiderio.py | 0 streams.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 raiderio.py diff --git a/raiderio.py b/raiderio.py old mode 100644 new mode 100755 diff --git a/streams.py b/streams.py index 043518d..b93a521 100755 --- a/streams.py +++ b/streams.py @@ -30,5 +30,7 @@ for stream in t["streams"]: if r.zadd("bot:twitch", now, stream["channel"]["name"]) == 0: continue - wh.send("{3} **{0}** está stremeando: [{2}](<{1}>)".format(stream["channel"]["name"], stream["channel"]["url"], stream["channel"]["status"], conf.icon_twitch)) + game = stream["channel"]["game"] if "game" in stream["channel"] else "ahora" + + wh.send("{3} **{0}** está stremeando {4}: [{2}](<{1}>)".format(stream["channel"]["name"], stream["channel"]["url"], stream["channel"]["status"], conf.icon_twitch, game)) time.sleep(2)