Files
xiao/commands/util/uptime.js
T
Daniel Odendahl Jr fd4e35533a 23
2017-06-17 03:26:31 +00:00

20 lines
597 B
JavaScript

const Command = require('../../structures/Command');
const moment = require('moment');
require('moment-duration-format');
module.exports = class UptimeCommand extends Command {
constructor(client) {
super(client, {
name: 'uptime',
group: 'util',
memberName: 'uptime',
description: 'Responds with how long the bot has been active on this Shard.',
guarded: true
});
}
run(msg) {
return msg.say(moment.duration(this.client.uptime).format('d[ days], h[ hours], m[ minutes, and ]s[ seconds]'));
}
};