Compare commits
No commits in common. "24cc4eb26d5d3b34cc0cd776567d6840285693c6" and "8c642f16f049a5876c531b616de63b9f2a7a4f67" have entirely different histories.
24cc4eb26d
...
8c642f16f0
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…
Add table
Add a link
Reference in a new issue