mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix jeopardy
This commit is contained in:
@@ -61,7 +61,7 @@ module.exports = class JeopardyCommand extends Command {
|
||||
time: 30000
|
||||
});
|
||||
if (playing) connection.stop();
|
||||
const answer = question.answer.replace(/<\/?i>/gi, '*');
|
||||
const answer = question.answer.replace(/<\/?i>/gi, '*').replace(/\(|\)/g, '');
|
||||
this.client.games.delete(msg.channel.id);
|
||||
if (!msgs.size) return msg.reply(`Time's up, the answer was **${answer}**.`);
|
||||
const win = msgs.first().content.toLowerCase() === answer.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user