diff --git a/commands/ssps/rozvrh.js b/commands/ssps/rozvrh.js index 92fb964..0fa5e81 100644 --- a/commands/ssps/rozvrh.js +++ b/commands/ssps/rozvrh.js @@ -47,6 +47,7 @@ module.exports = class rozvrh extends commando.Command { if(date.weekday === 0 || date.weekday === 7) { date = date.plus({ days: date.weekday === 0 ? 2 : 1 }); } + if(date.weekday > 5) date = date.plus({ days: 8 - date.weekday}); const schedule = await Timetable.findAll({ where: { day: date.weekday - 1,