Remove moment and moment-duration-format

This commit is contained in:
Daniel Odendahl Jr
2017-08-30 22:14:24 +00:00
parent 158716a453
commit 7d1adaec39
14 changed files with 36 additions and 36 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
const Command = require('../../structures/Command');
const moment = require('moment');
require('moment-duration-format');
const { duration } = require('../../structures/Util');
module.exports = class UptimeCommand extends Command {
constructor(client) {
@@ -14,6 +13,6 @@ module.exports = class UptimeCommand extends Command {
}
run(msg) {
return msg.say(moment.duration(this.client.uptime).format('d[ days], h[ hours], m[ minutes, and ]s[ seconds]'));
return msg.say(duration(this.client.uptime).format);
}
};