if time is less or equal to 0, set it to 1

merge-requests/3/head
Loïc Bersier 5 years ago
parent b66baae486
commit db642cbd76

@ -31,6 +31,7 @@ class borgarCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
if (args.time <= 0) args.time = 1;
const ingredient = [ 'bun', 'beef', 'salade', 'tomato', 'cheese', 'pickle']; const ingredient = [ 'bun', 'beef', 'salade', 'tomato', 'cheese', 'pickle'];
let hamIngredient = []; let hamIngredient = [];
for (let i = 0; i < args.ingredientNumber; i++) { for (let i = 0; i < args.ingredientNumber; i++) {

Loading…
Cancel
Save