From 983e5e8c6bfc9fe7af09b4b97eda04b25021d1ad Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 7 Mar 2016 12:33:26 +0100 Subject: [PATCH] bugfix? forse --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 7fe93788..4c7b24e7 100644 --- a/bot.py +++ b/bot.py @@ -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'],