diff --git a/main.py b/main.py index 17473b9a..8fff8774 100644 --- a/main.py +++ b/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 diff --git a/strings.py b/strings.py index 77ee31e6..a75356c9 100644 --- a/strings.py +++ b/strings.py @@ -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_!"