mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Tieni anche i nomi utente di LoL nel database
This commit is contained in:
parent
da96eb1bbf
commit
1dc5731ead
1 changed files with 5 additions and 2 deletions
5
main.py
5
main.py
|
@ -143,7 +143,7 @@ async def league_rank_change(timeout):
|
||||||
|
|
||||||
|
|
||||||
async def league_level_up(timeout):
|
async def league_level_up(timeout):
|
||||||
"""Check for League of Legends profile level ups."""
|
"""Check for League of Legends profile level ups and name changes."""
|
||||||
while True:
|
while True:
|
||||||
if discord_is_ready:
|
if discord_is_ready:
|
||||||
print("[League] Starting check for level changes...")
|
print("[League] Starting check for level changes...")
|
||||||
|
@ -159,6 +159,9 @@ async def league_level_up(timeout):
|
||||||
# If some other error occours, skip the player
|
# If some other error occours, skip the player
|
||||||
print("[League] Request returned an unhandled exception.")
|
print("[League] Request returned an unhandled exception.")
|
||||||
else:
|
else:
|
||||||
|
# Update summoner name
|
||||||
|
name = r["name"]
|
||||||
|
db[player]["league"]["name"] = name
|
||||||
# Check for level changes
|
# Check for level changes
|
||||||
level = r["summonerLevel"]
|
level = r["summonerLevel"]
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue