diff --git a/commands/remind/remind.js b/commands/remind/remind.js index 9267d7fe..6d12bd8b 100644 --- a/commands/remind/remind.js +++ b/commands/remind/remind.js @@ -25,6 +25,7 @@ module.exports = class RemindCommand extends Command { if (exists) return msg.reply('🕰️ Only one reminder can be set per channel per user.'); const timeMs = time.startDate.getTime() - Date.now(); if (timeMs > 0x7FFFFFFF) return msg.reply('🕰️ Reminders have a maximum length of ~24.84 days.'); + if (timeMs < 0) return msg.reply('🕰️ What do you expect me to do, time travel?'); const display = moment().add(timeMs, 'ms').fromNow(); const title = time.eventTitle ? shorten(time.eventTitle, 500) : 'something'; await this.client.timers.setTimer(msg.channel.id, timeMs, msg.author.id, title);