mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
bugfix? forse
This commit is contained in:
parent
4ee9662c95
commit
983e5e8c6b
1 changed files with 2 additions and 2 deletions
4
bot.py
4
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'],
|
||||
|
|
Loading…
Reference in a new issue