Fix invalid correct guess

This commit is contained in:
Dragon Fire
2021-03-09 20:16:47 -05:00
parent 06001ca169
commit 3d04814f2c
+1 -1
View File
@@ -67,7 +67,7 @@ module.exports = class GuessSongCommand extends Command {
this.client.dispatchers.delete(msg.guild.id);
if (!msgs.size) return msg.reply(`Time! It's **${data.name}** by **${data.artist}**!`);
const guess = msgs.first().content.toLowerCase();
if (!guess.includes(data.name.toLowerCase()) && !data.name.toLowerCase().includes(guess)) {
if (!guess.includes(data.name.toLowerCase())) {
return msg.reply(`Nope! It's **${data.name}** by **${data.artist}**!`);
}
return msg.reply(`Nice! It's **${data.name}** by **${data.artist}**!`);