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

This commit is contained in:
Loïc Bersier 2019-06-18 00:46:27 +02:00
parent b66baae486
commit db642cbd76

View file

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