Skip to content

Commit

Permalink
fix: hero swap message
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Aug 9, 2023
1 parent 6c12f4e commit 0cf665e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/dota/src/dota/events/gsi-events/hero.name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ eventHandler.registerEvent(`hero:name`, {
lng: dotaClient.client.locale,
emote: 'Okayeg 👍',
emote2: 'peepoGamble',
oldHeroName: dotaClient.playingHero,
newHeroName: name,
oldHeroName: dotaClient.playingHero
? getHero(dotaClient.playingHero)?.localized_name ?? dotaClient.playingHero
: dotaClient.playingHero,
newHeroName: hero?.localized_name ?? name,
}),
{ delay: false },
)
logger.info('[BETS] remade bets', {
event: 'open_bets',
oldHeroName: dotaClient.playingHero,
oldHeroName: hero?.localized_name ?? dotaClient.playingHero,
newHeroName: name,
user: dotaClient.getToken(),
player_team: dotaClient.client.gsi?.player?.team_name,
Expand Down

0 comments on commit 0cf665e

Please sign in to comment.