This commit is contained in:
Daniel Odendahl Jr
2017-08-18 19:06:11 +00:00
parent c488bbf6c8
commit b8a3877863
9 changed files with 20 additions and 11 deletions
+1
View File
@@ -35,6 +35,7 @@ module.exports = class MathGameCommand extends Command {
const answer = math.eval(expression).toString();
const embed = new MessageEmbed()
.setTitle('You have 10 seconds to answer:')
.setColor(0x9797FF)
.setDescription(expression);
await msg.embed(embed);
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
+1
View File
@@ -44,6 +44,7 @@ module.exports = class QuizCommand extends Command {
answers.push(correct);
const embed = new MessageEmbed()
.setTitle('You have 15 seconds to answer this question:')
.setColor(0x9797FF)
.setDescription(stripIndents`
**${decodeURIComponent(body.results[0].category)}**
${type === 'boolean' ? '**True or False:** ' : ''}${decodeURIComponent(body.results[0].question)}
+1
View File
@@ -31,6 +31,7 @@ module.exports = class TypingGameCommand extends Command {
const time = times[difficulty];
const embed = new MessageEmbed()
.setTitle(`You have ${time / 1000} seconds to type:`)
.setColor(0x9797FF)
.setDescription(sentence);
await msg.embed(embed);
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {