From 7a4cdc7d7dbd7b24e46cfa8d3daa3d47646aca74 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 18 Jun 2019 00:07:12 +0200 Subject: [PATCH] can input time in seconds --- commands/minigame/borgar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/minigame/borgar.js b/commands/minigame/borgar.js index 05004d2c..14142055 100644 --- a/commands/minigame/borgar.js +++ b/commands/minigame/borgar.js @@ -24,7 +24,7 @@ class borgarCommand extends Command { ], description: { content: 'Make amborgar,,,,,,,,,, ( MINI GAME VERY WIP, NO LEVEL YET )', - usage: '[number of ingredient] [time in miliseconds]', + usage: '[number of ingredient] [time]', examples: ['4 10000'] } }); @@ -41,13 +41,13 @@ class borgarCommand extends Command { const borgarEmbed = new MessageEmbed() .setTitle('hamborger delivery') .setDescription(`could you do me an **amborgar** that contain **${hamIngredient}**`) - .setFooter('Level 0 | you have 10 seconds to make that hamborgor') + .setFooter(`Level 0 | you have 10 seconds ${args.time} to make that hamborgor`) .setTimestamp(); message.channel.send(borgarEmbed); const filter = m => m.content && m.author.id == message.author.id; - message.channel.awaitMessages(filter, {time: 10000, errors: ['time'] }) + message.channel.awaitMessages(filter, {time: args.time * 1000, errors: ['time'] }) .catch(collected => { let userIngredient = collected.map(collected => collected.content); console.log(hamIngredient + '\n' + userIngredient);