diff --git a/commands/games-sp/jeopardy.js b/commands/games-sp/jeopardy.js index 66c3abee..6b7e0726 100644 --- a/commands/games-sp/jeopardy.js +++ b/commands/games-sp/jeopardy.js @@ -36,7 +36,7 @@ module.exports = class JeopardyCommand extends Command { async run(msg) { try { const question = await this.fetchQuestion(); - const clueCard = await this.generateClueCard(question.question); + const clueCard = await this.generateClueCard(question.question.replace(/<\/?i>/gi, '')); await msg.reply(`The category is: **${question.category.title.toUpperCase()}**. 30 seconds, good luck.`, { files: [{ attachment: clueCard, name: 'clue-card.png' }] }); @@ -44,10 +44,11 @@ module.exports = class JeopardyCommand extends Command { max: 1, time: 30000 }); - if (!msgs.size) return msg.reply(`Time's up, the answer was **${question.answer}**.`); - const win = msgs.first().content.toLowerCase() === question.answer.toLowerCase(); - if (!win) return msg.reply(`The answer was **${question.answer}**.`); - return msg.reply(`The answer was **${question.answer}**. Good job!`); + const answer = question.answer.replace(/<\/?i>/gi, '*'); + if (!msgs.size) return msg.reply(`Time's up, the answer was **${answer}**.`); + const win = msgs.first().content.toLowerCase() === answer.toLowerCase(); + if (!win) return msg.reply(`The answer was **${answer}**.`); + return msg.reply(`The answer was **${answer}**. Good job!`); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); } diff --git a/package.json b/package.json index 55845206..7d06f2a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.6.0", + "version": "114.6.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {