the mentions

This commit is contained in:
Hexugory 2023-03-31 23:45:56 -05:00
parent ccc20b0667
commit 861585ceba

View File

@ -65,7 +65,7 @@ export class ActiveBattle {
await this.battle.player2.update({ elo: ELO.newRatingIfLost(elo2, elo1) });
await this.battle.channel.send({
content: `${player1?.user.username || '████████'} has defeated ${player2?.user.username || '████████'}!\n\n${player1?.user.username || '████████'} +${this.battle.player1.elo-elo1}\n${player2?.user.username || '████████'} -${elo2-this.battle.player2.elo}`
content: `${player1 || '████████'} has defeated ${player2 || '████████'}!\n\n${player1?.user.username || '████████'} +${this.battle.player1.elo-elo1}\n${player2?.user.username || '████████'} -${elo2-this.battle.player2.elo}`
}).catch(this.logAndSelfDestruct);
break;
case BattleState.Team2Win:
@ -73,7 +73,7 @@ export class ActiveBattle {
await this.battle.player1.update({ elo: ELO.newRatingIfLost(elo1, elo2) });
await this.battle.channel.send({
content: `${player2?.user.username || '████████'} has defeated ${player1?.user.username || '████████'}!\n\n${player2?.user.username || '████████'} +${this.battle.player2.elo-elo2}\n${player1?.user.username || '████████'} -${elo1-this.battle.player1.elo}`
content: `${player2 || '████████'} has defeated ${player1 || '████████'}!\n\n${player2?.user.username || '████████'} +${this.battle.player2.elo-elo2}\n${player1?.user.username || '████████'} -${elo1-this.battle.player1.elo}`
}).catch(this.logAndSelfDestruct);
break;
}