From 4e48f143189645403b38d949e6f19557609032bf Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 30 Oct 2024 03:19:10 +0000 Subject: [PATCH] Display number of voters. --- commissar-user.js | 2 -- presidential-election.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commissar-user.js b/commissar-user.js index 2f71abb..6b87bfc 100644 --- a/commissar-user.js +++ b/commissar-user.js @@ -399,8 +399,6 @@ class CommissarUser { getGenderPrefix() { if (this.gender === 'F') { return 'Madam'; - } else if (this.gender === 'A') { - return 'The'; } else { return 'Mr.'; } diff --git a/presidential-election.js b/presidential-election.js index cbe4555..3ce72d6 100644 --- a/presidential-election.js +++ b/presidential-election.js @@ -355,7 +355,7 @@ async function CountVotesAndAwardPresidency() { }; const electionEndTimestamp = CalculateUnixTimestampOfElectionEndForThisMonth(); await headerMessage.edit({ - content: `**Presidential Election**\nThe vote ends `, + content: `**Presidential Election**\n${voteCount} voters. The vote ends `, files: [voteTallyAttachment], }); let mrPresidentId;