mirror of
https://github.com/danbulant/ssps-bot
synced 2026-07-05 19:10:45 +00:00
oprava změny data
This commit is contained in:
parent
4fe5cd8783
commit
0e19f9b52d
1 changed files with 2 additions and 2 deletions
|
|
@ -16,8 +16,8 @@ module.exports = class suplovani extends commando.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const date = DateTime.now();
|
let date = DateTime.now();
|
||||||
if(date.hour > 16) date.plus({ days: 1 }); // show tomorrow supplementations after 4PM
|
if(date.hour > 16) date = date.plus({ days: 1 }); // show tomorrow supplementations after 4PM
|
||||||
const supplementations = await api.getSupplementations(date);
|
const supplementations = await api.getSupplementations(date);
|
||||||
|
|
||||||
const embed = new MessageEmbed();
|
const embed = new MessageEmbed();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue