mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
altre cose
This commit is contained in:
parent
14582b9edc
commit
27b49da1fa
1 changed files with 6 additions and 1 deletions
|
@ -137,10 +137,15 @@ def brawlhalla_rank_change(item, change: typing.Tuple[DirtyDelta, Dirty]):
|
||||||
rating=solo.value,
|
rating=solo.value,
|
||||||
delta=solo.delta)
|
delta=solo.delta)
|
||||||
if team.is_dirty():
|
if team.is_dirty():
|
||||||
|
partner = item.best_team_partner
|
||||||
|
if partner is None:
|
||||||
|
other = "???"
|
||||||
|
else:
|
||||||
|
other = partner.steam.royal.username
|
||||||
reply_msg(telegram_bot, main_chat_id, strings.STATSUPDATE.BRAWLHALLA.TEAM,
|
reply_msg(telegram_bot, main_chat_id, strings.STATSUPDATE.BRAWLHALLA.TEAM,
|
||||||
username=item.steam.royal.username,
|
username=item.steam.royal.username,
|
||||||
rating=team[1],
|
rating=team[1],
|
||||||
teamname=team[0])
|
other=other)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.warning(f"Couldn't notify on Telegram: {item}")
|
logger.warning(f"Couldn't notify on Telegram: {item}")
|
||||||
sentry.captureException()
|
sentry.captureException()
|
||||||
|
|
Loading…
Reference in a new issue