From 13575b33f31b1e9773fe03faf3197b31b0055df2 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 24 Oct 2021 15:22:23 +0200 Subject: [PATCH] =?UTF-8?q?p=C5=99esko=C4=8Den=C3=AD=20v=C3=ADkendu=20v=20?= =?UTF-8?q?suplov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/ssps/suplovani.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/ssps/suplovani.js b/commands/ssps/suplovani.js index 1fe9a51..8bf2f50 100644 --- a/commands/ssps/suplovani.js +++ b/commands/ssps/suplovani.js @@ -18,6 +18,7 @@ module.exports = class suplovani extends commando.Command { async run(msg) { let date = DateTime.now(); if(date.hour > 16) date = date.plus({ days: 1 }); // show tomorrow supplementations after 4PM + if(date.weekday > 5) date = date.plus({ days: 8 - weekday}); const supplementations = await api.getSupplementations(date); const embed = new MessageEmbed();