1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2016-12-12 08:27:03 +01:00 committed by GitHub
parent 9a9c33ecf7
commit b57d946e5b

View file

@ -71,7 +71,7 @@ async def overwatch_status_change(timeout):
oldrank = 0 oldrank = 0
if rank != oldrank: if rank != oldrank:
# Send the message # Send the message
loop.create_task(send_event(eventmsg=s.overwatch_rank_change, player=player, change=oldrank-rank, rank=rank, medal=overwatch.rank_to_medal(rank))) loop.create_task(send_event(eventmsg=s.overwatch_rank_change, player=player, change=rank-oldrank, rank=rank, medal=overwatch.rank_to_medal(rank)))
# Update database # Update database
db[player]["overwatch"]["rank"] = rank db[player]["overwatch"]["rank"] = rank
f = open("db.json", "w") f = open("db.json", "w")