forked from Supositware/Haha-Yes
made it a little bit more chalenging
This commit is contained in:
parent
0fc2db5074
commit
5b9d187366
1 changed files with 28 additions and 19 deletions
|
@ -39,13 +39,21 @@ class borgarCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const borgarEmbed = new MessageEmbed()
|
let borgarEmbed = new MessageEmbed()
|
||||||
.setTitle('hamborger delivery')
|
.setTitle('hamborger delivery')
|
||||||
.setDescription(`could you do me an **amborgar** that contain **${hamIngredient}**`)
|
.setDescription(`could you do me an **amborgar** that contain **${hamIngredient}**`)
|
||||||
.setFooter(`Level 0 | you have ${args.time} seconds to make that hamborgor`)
|
.setFooter(`Level 0 | you have ${args.time} seconds to make that hamborgor`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
message.channel.send(borgarEmbed);
|
message.util.send(borgarEmbed)
|
||||||
|
.then(() => {
|
||||||
|
setTimeout(async () => {
|
||||||
|
borgarEmbed = new MessageEmbed()
|
||||||
|
.setTitle('hamborger delivery')
|
||||||
|
.setDescription('You have to put each ingredients in seperate message!')
|
||||||
|
.setFooter(`Level 0 | you have ${args.time} seconds to make that hamborgor`)
|
||||||
|
.setTimestamp();
|
||||||
|
message.util.edit(borgarEmbed);
|
||||||
|
|
||||||
const filter = m => m.content && m.author.id == message.author.id;
|
const filter = m => m.content && m.author.id == message.author.id;
|
||||||
message.channel.awaitMessages(filter, {time: args.time * 1000, errors: ['time'] })
|
message.channel.awaitMessages(filter, {time: args.time * 1000, errors: ['time'] })
|
||||||
|
@ -64,7 +72,8 @@ class borgarCommand extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue