From 0e19f9b52dd36237172c16b9cf33a96f4cc2c0f8 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 16 Oct 2021 19:18:01 +0200 Subject: [PATCH] =?UTF-8?q?oprava=20zm=C4=9Bny=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/ssps/suplovani.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/ssps/suplovani.js b/commands/ssps/suplovani.js index c5034d4..1fe9a51 100644 --- a/commands/ssps/suplovani.js +++ b/commands/ssps/suplovani.js @@ -16,8 +16,8 @@ module.exports = class suplovani extends commando.Command { } async run(msg) { - const date = DateTime.now(); - if(date.hour > 16) date.plus({ days: 1 }); // show tomorrow supplementations after 4PM + let date = DateTime.now(); + if(date.hour > 16) date = date.plus({ days: 1 }); // show tomorrow supplementations after 4PM const supplementations = await api.getSupplementations(date); const embed = new MessageEmbed();