MeesageEmbed

This commit is contained in:
Daniel Odendahl Jr
2017-07-03 23:49:09 +00:00
parent 7214aea5e8
commit 58807cd222
39 changed files with 79 additions and 79 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { MessageEmbed } = require('discord.js');
const math = require('mathjs');
const { operations, difficulties, maxValues } = require('../../assets/json/math-game');
@@ -33,7 +33,7 @@ module.exports = class MathGameCommand extends Command {
const value2 = Math.floor(Math.random() * maxValues[difficulty]) + 1;
const expression = `${value1} ${operation} ${value2}`;
const answer = math.eval(expression).toString();
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setTitle('You have 10 seconds to answer:')
.setDescription(expression);
await msg.embed(embed);