diff --git a/src/games/dice.js b/src/games/dice.js index b3ed81f..a7c20e4 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 `${dieFaces[result - 1] ? `${style.grey(dieFaces[result - 1])} ` : ''}${style.bold(result)}`; // eslint-disable-line no-irregular-whitespace }); context.sendMessage(results.join(' | '), context.room.id); @@ -33,5 +33,5 @@ function onCommand(args, context) { module.exports = { onCommand, - commands: ['dice', 'roll'], + commands: ['dice', 'die', 'roll'], }; diff --git a/src/play.js b/src/play.js index 2012c98..a114a6d 100644 --- a/src/play.js +++ b/src/play.js @@ -97,7 +97,7 @@ function curateMessageBody(rawBody, game, key, options) { return body; } - return `${style.grey(`[${game.name || key}]`)} ${body}`; + return `${style.grey(`[${game.name || `${key.slice(0, 1).toUpperCase()}${key.slice(1)}`}]`)} ${body}`; } async function getGames(bot, identifier) {