From c3cadc31695d19ead46a70033c571c03e26c5ca5 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Mon, 10 Jun 2024 01:24:24 +0200 Subject: [PATCH] Clarify when word is in dictionary without a definition. --- src/games/mash.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/games/mash.js b/src/games/mash.js index 8dbb6c2..9b5022f 100755 --- a/src/games/mash.js +++ b/src/games/mash.js @@ -144,7 +144,12 @@ function define(word, context) { return; } - context.sendMessage(`No definition available for ${style.bold(word)}, ${config.usernamePrefix}${context.user.username}`, context.room.id); + if (answer) { + context.sendMessage(`${style.bold(word)} is in my dictionary, but I cannot provide a definition, ${config.usernamePrefix}${context.user.username}`, context.room.id); + return; + } + + context.sendMessage(`${style.bold(word)} is not in my dictionary, ${config.usernamePrefix}${context.user.username}`, context.room.id); } function sanitizeDefinition(definition, answers) {