Compare commits
1 changed files with 1 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
const fs = require('fs');
|
||||
const parseTime = require('./parseTime');
|
||||
const timeUntil = require('./timeUntil');
|
||||
const sqlite3 = require('sqlite3').verbose();
|
||||
|
|
@ -10,9 +11,6 @@ module.exports = async function (message, args) {
|
|||
let timeInSeconds;
|
||||
if(Date.parse(args[0]) && parseFloat(args[0]).toString() === args[0]){
|
||||
timeInSeconds = timeUntil(args[0]);
|
||||
if(timeUntil.totalInSeconds < 0){
|
||||
return message.channel.send("The date must not be in the past.");
|
||||
}
|
||||
}else {
|
||||
timeInSeconds = parseTime(args[0], currentUnixTime);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue