Files
xiao/commands/util/uptime.js
T
2018-05-30 12:04:21 +00:00

19 lines
421 B
JavaScript

const Command = require('../../structures/Command');
const { duration } = require('../../util/Util');
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.',
guarded: true
});
}
run(msg) {
return msg.say(duration(this.client.uptime));
}
};