This commit is contained in:
loicbersier 2019-09-16 20:37:25 +02:00
parent fa041e1eb0
commit 144d3ed07e

View file

@ -32,7 +32,7 @@ class borgarCommand extends Command {
async exec(message, args) { async exec(message, args) {
if (args.time <= 0) args.time = 1; if (args.time <= 0) args.time = 1;
const ingredients = [ 'bun', 'beef', 'salade', 'tomato', 'cheese', 'pickle', 'onion', 'garlic', 'basil', 'letuce']; const ingredients = [ 'bun', 'beef', 'salade', 'tomato', 'cheese', 'pickle', 'onion', 'garlic', 'basil', 'lettuce'];
let hamIngredient = []; let hamIngredient = [];
for (let i = 0; i < args.ingredientNumber; i++) { for (let i = 0; i < args.ingredientNumber; i++) {
hamIngredient[i] = ingredients[Math.floor( Math.random() * ingredients.length )]; hamIngredient[i] = ingredients[Math.floor( Math.random() * ingredients.length )];