1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

bugfix? forse

This commit is contained in:
Steffo 2016-03-07 12:33:26 +01:00
parent 4ee9662c95
commit 983e5e8c6b

4
bot.py
View file

@ -630,8 +630,8 @@ while True:
cmd = text.split(" ", 1)
if "lol" in royalgames[username.lower()]:
r = lol.getmatchlist(royalgames[username.lower()]['lol'])
if len(match) > 0:
for match in r[:5]:
if len(r['matches']) > 0:
for match in r['matches'][:5]:
sd = lol.getchampionstaticdata(match['champion'])
sendme += "`{0}` {1} ({2})\n".format(str(match['matchId']),
sd['name'],