This commit is contained in:
parent
a16263c04e
commit
24cc4eb26d
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ module.exports = async function (message, args) {
|
||||||
let timeInSeconds;
|
let timeInSeconds;
|
||||||
if(Date.parse(args[0]) && parseFloat(args[0]).toString() === args[0]){
|
if(Date.parse(args[0]) && parseFloat(args[0]).toString() === args[0]){
|
||||||
timeInSeconds = timeUntil(args[0]);
|
timeInSeconds = timeUntil(args[0]);
|
||||||
|
if(timeUntil.totalInSeconds < 0){
|
||||||
|
return message.channel.send("The date must not be in the past.");
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
timeInSeconds = parseTime(args[0], currentUnixTime);
|
timeInSeconds = parseTime(args[0], currentUnixTime);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue