mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fixato il bug di LoL. Forse.
This commit is contained in:
parent
94e32875e2
commit
dcac246607
2 changed files with 10 additions and 2 deletions
5
main.py
5
main.py
|
@ -95,8 +95,9 @@ async def league_rank_change(timeout):
|
|||
player=player,
|
||||
tier=s.league_tier_list[tier_number],
|
||||
division=r["entries"][0]["division"],
|
||||
oldtier=db[player]["league"]["tier"],
|
||||
olddivision=db[player]["league"]["division"]))
|
||||
oldtier=s.league_tier_list[db[player]["league"]["tier"]],
|
||||
olddivision=
|
||||
s.league_roman_list[db[player]["league"]["division"]]))
|
||||
# Update database
|
||||
db[player]["league"]["tier"] = tier_number
|
||||
db[player]["league"]["division"] = roman_number
|
||||
|
|
|
@ -15,6 +15,13 @@ league_tier_list = ["Bronzo",
|
|||
"Master",
|
||||
"Challenger"]
|
||||
|
||||
# League of Legends: Roman tier list
|
||||
league_roman_list = ["I",
|
||||
"II",
|
||||
"III",
|
||||
"IV",
|
||||
"V"]
|
||||
|
||||
# League of Legends: Level up!
|
||||
league_level_up = "{player} è salito al livello **{level}** su _League of Legends_!"
|
||||
|
||||
|
|
Loading…
Reference in a new issue