mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
@@ -21,8 +21,8 @@ module.exports = class ParseTimeCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run(msg, { time }) {
|
run(msg, { time }) {
|
||||||
const time = moment.duration(Date.now() - time.startDate.getTime());
|
const duration = 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 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}**.`);
|
return msg.say(`This time duration parses as **${display}**.`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user