This commit is contained in:
Dragon Fire
2020-11-25 17:51:18 -05:00
parent eb25419411
commit 78a6061844
+2 -2
View File
@@ -21,8 +21,8 @@ module.exports = class ParseTimeCommand extends Command {
}
run(msg, { time }) {
const time = moment.duration(Date.now() - time.startDate.getTime());
const display = time.format('Y [years,] M [months,] d [days,] h [hours,] m [minutes and] s [seconds]');
const duration = moment.duration(Date.now() - time.startDate.getTime());
const display = duration.format('Y [years,] M [months,] d [days,] h [hours,] m [minutes and] s [seconds]');
return msg.say(`This time duration parses as **${display}**.`);
}
};