mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Changes
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user