mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +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,
|
player=player,
|
||||||
tier=s.league_tier_list[tier_number],
|
tier=s.league_tier_list[tier_number],
|
||||||
division=r["entries"][0]["division"],
|
division=r["entries"][0]["division"],
|
||||||
oldtier=db[player]["league"]["tier"],
|
oldtier=s.league_tier_list[db[player]["league"]["tier"]],
|
||||||
olddivision=db[player]["league"]["division"]))
|
olddivision=
|
||||||
|
s.league_roman_list[db[player]["league"]["division"]]))
|
||||||
# Update database
|
# Update database
|
||||||
db[player]["league"]["tier"] = tier_number
|
db[player]["league"]["tier"] = tier_number
|
||||||
db[player]["league"]["division"] = roman_number
|
db[player]["league"]["division"] = roman_number
|
||||||
|
|
|
@ -15,6 +15,13 @@ league_tier_list = ["Bronzo",
|
||||||
"Master",
|
"Master",
|
||||||
"Challenger"]
|
"Challenger"]
|
||||||
|
|
||||||
|
# League of Legends: Roman tier list
|
||||||
|
league_roman_list = ["I",
|
||||||
|
"II",
|
||||||
|
"III",
|
||||||
|
"IV",
|
||||||
|
"V"]
|
||||||
|
|
||||||
# League of Legends: Level up!
|
# League of Legends: Level up!
|
||||||
league_level_up = "{player} è salito al livello **{level}** su _League of Legends_!"
|
league_level_up = "{player} è salito al livello **{level}** su _League of Legends_!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue