streams details and permissions

This commit is contained in:
Sergio Álvarez 2017-12-14 12:27:52 +01:00
parent c48c57f7f0
commit 989efdf5ae
2 changed files with 3 additions and 1 deletions

0
raiderio.py Normal file → Executable file
View File

View File

@ -30,5 +30,7 @@ for stream in t["streams"]:
if r.zadd("bot:twitch", now, stream["channel"]["name"]) == 0: if r.zadd("bot:twitch", now, stream["channel"]["name"]) == 0:
continue 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) time.sleep(2)