From 502032a0e47462c17a049fe5d8603e4b25cb6704 Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Mon, 30 Nov 2020 11:08:54 +0100 Subject: [PATCH] Update node.js --- node.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/node.js b/node.js index 24970dc..291a2fb 100644 --- a/node.js +++ b/node.js @@ -129,13 +129,13 @@ function countdowns(plus) { .setColor("RANDOM"); - if (remainingMartin < 0) { - embed.addField("Martinov nenápadný odpočet: ", remainingMartin) - .addField("‎", "‎"); - } - if(remainingPeter < 0){ - embed.addField("Cyberpunk 2077: ", remainingPeter); - } + if(remainingPeter > 0){ + embed.spliceFields(8); + } + if (remainingMartin > 0) { + embed.spliceFields(6, 3); + } + left += plus;