Skip to content

Commit 47a2052

Browse files
committed
Fix default value for max players
Fixes #13 Fixes #14
1 parent 0d45503 commit 47a2052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class App {
2222
this.client = await this.createDiscordClient();
2323
try {
2424
const publisher = new DiscordPublisher(this.client, new FileBackedMapRepository(), {
25-
playerCount: process.env.DISCORD_PUBLISHER_MESSAGE_FORMAT || '${playerCount}/${status.maxPlayers} $queuedPlayers',
25+
playerCount: process.env.DISCORD_PUBLISHER_MESSAGE_FORMAT || '${playerCount}/${maxPlayers} $queuedPlayers',
2626
queuedPlayers: process.env.DISCORD_PUBLISHER_MESSAGE_QUEUED_FORMAT || '(+${queuedPlayers})',
2727
});
2828
this.useCase = new ProvideGameStatus(providerFactory().build(), publisher);

0 commit comments

Comments
 (0)