From db642cbd760d88e95652bbf8ba0d37da103bf6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Tue, 18 Jun 2019 00:46:27 +0200 Subject: [PATCH] if time is less or equal to 0, set it to 1 --- commands/minigame/borgar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/minigame/borgar.js b/commands/minigame/borgar.js index 7b40a30..d07e0be 100644 --- a/commands/minigame/borgar.js +++ b/commands/minigame/borgar.js @@ -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++) {