Added rudimentary Trivia game.
This commit is contained in:
@@ -48,7 +48,9 @@ function start(length, context, attempt = 0) {
|
||||
context.logger.info(`Mash started, '${anagram}' with answers ${answers.map((answer) => `'${answer.word}'`).join(', ')}`);
|
||||
}
|
||||
|
||||
function play(word, context) {
|
||||
function play(rawWord, context) {
|
||||
const word = rawWord.toLowerCase();
|
||||
|
||||
if (word.length !== mash.key.length) {
|
||||
context.sendMessage(`Your answer needs to be ${mash.key.length} letters, @${context.user.username}`, context.room.id);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user