Clarify when word is in dictionary without a definition.

This commit is contained in:
ThePendulum 2024-06-10 01:24:24 +02:00
parent 29cbd77e35
commit c3cadc3169
1 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,12 @@ function define(word, context) {
return; 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) { function sanitizeDefinition(definition, answers) {