Skip to content

Commit ee52ed5

Browse files
committed
games: Remove #TEMP IDs
1 parent 299c94f commit ee52ed5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/ps/commands/games/core.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
160160
throw new ChatError($T('GAME.ALREADY_JOINED'));
161161
}
162162
}
163-
const id =
164-
// TODO: Revert this bit once Scrabble is stable
165-
['scrabble', 'chess'].includes(Game.meta.id)
166-
? '#TEMP'
167-
: Game.meta.players === 'single'
168-
? `#${Game.meta.abbr}-${message.author.id}`
169-
: generateId();
163+
const id = Game.meta.players === 'single' ? `#${Game.meta.abbr}-${message.author.id}` : generateId();
170164
if (PSGames[gameId]?.[id]) throw new ChatError($T('GAME.ALREADY_STARTED'));
171165
const game = new Game.instance({ id, meta: Game.meta, room: message.target, $T, args, by: message.author });
172166
if (game.meta.players === 'many') {

0 commit comments

Comments
 (0)