oprava změny data

This commit is contained in:
Daniel Bulant 2021-10-16 19:18:01 +02:00
parent 4fe5cd8783
commit 0e19f9b52d

View file

@ -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();