More fixes

This commit is contained in:
Daniel Odendahl Jr
2017-12-14 19:02:52 +00:00
parent 3b6558599a
commit 5a202d0ff0
2 changed files with 43 additions and 6 deletions
+40 -4
View File
@@ -8,9 +8,7 @@
"Am I",
"Is Google",
"Is it bad to",
"Am I going to",
"What is the best way to",
"Am I going to",
"Can cats",
"Can I",
"Can you",
@@ -58,9 +56,47 @@
"Can you die from",
"Should I",
"Will I die",
"Am I",
"Do people hate",
"Do people love",
"Am I in",
"Am I going to"
"Am I going to",
"Are my friends",
"Are my enemies",
"Does my girlfriend",
"Does my boyfriend",
"Is my girlfriend",
"Is my boyfriend",
"What is the worst way to",
"Will I be okay if",
"Is there a limit on",
"What is the maximum",
"What is the minimum",
"Is the government",
"Does Bart Simpson",
"Are LEGOs",
"Memes are",
"Are memes",
"Are you going to go to",
"How do I get to",
"What website has",
"Is Discord better",
"How do I",
"How do you",
"Can I eat from",
"Is it healthy to",
"Is it harmful to",
"Google",
"What is the best site for",
"Is it illegal to",
"Are lawyers",
"Does Discord",
"Will ISPs",
"Can Discord bots",
"Who is the richest",
"Is the internet",
"Should I stay",
"On what day is",
"Do you need money to get",
"Are cats really",
"Is 100"
]
+3 -2
View File
@@ -29,7 +29,7 @@ module.exports = class GoogleFeudCommand extends Command {
.setTitle(`${question}...?`)
.setDescription('Type the choice you think is a suggestion _without_ the question.')
.setFooter(`${3 - fails} tries remaining!`);
for (let i = 0; i < suggestions.length; i++) embed.addField(` ${10000 - (i * 1000) || 500}`, display[i], true);
for (let i = 0; i < suggestions.length; i++) embed.addField(` ${10000 - (i * 1000)}`, display[i], true);
await msg.embed(embed);
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
max: 1,
@@ -49,11 +49,12 @@ module.exports = class GoogleFeudCommand extends Command {
}
}
this.playing.delete(msg.channel.id);
console.log(fails);
if (fails === 3) return msg.say('Better luck next time!');
return msg.say('You win! Nice job, master of Google!');
} catch (err) {
this.playing.delete(msg.channel.id);
throw err;
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}