diff --git a/src/games/dice.js b/src/games/dice.js index a7c20e4..4a3049f 100644 --- a/src/games/dice.js +++ b/src/games/dice.js @@ -25,7 +25,7 @@ function onCommand(args, context) { const result = crypto.randomInt(1, faces); // using U+2003 Em Space after dice to create double space that doesn't get filtered in SChat - return `${dieFaces[result - 1] ? `${style.grey(dieFaces[result - 1])} ` : ''}${style.bold(result)}`; // eslint-disable-line no-irregular-whitespace + return `${style.grey(dieFaces[result - 1] || '▦')} ${style.bold(result)}`; // eslint-disable-line no-irregular-whitespace }); context.sendMessage(results.join(' | '), context.room.id);