mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +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)
|
cmd = text.split(" ", 1)
|
||||||
if "lol" in royalgames[username.lower()]:
|
if "lol" in royalgames[username.lower()]:
|
||||||
r = lol.getmatchlist(royalgames[username.lower()]['lol'])
|
r = lol.getmatchlist(royalgames[username.lower()]['lol'])
|
||||||
if len(match) > 0:
|
if len(r['matches']) > 0:
|
||||||
for match in r[:5]:
|
for match in r['matches'][:5]:
|
||||||
sd = lol.getchampionstaticdata(match['champion'])
|
sd = lol.getchampionstaticdata(match['champion'])
|
||||||
sendme += "`{0}` {1} ({2})\n".format(str(match['matchId']),
|
sendme += "`{0}` {1} ({2})\n".format(str(match['matchId']),
|
||||||
sd['name'],
|
sd['name'],
|
||||||
|
|
Loading…
Reference in a new issue