Files
xiao/commands/util/uptime.js
T
Daniel Odendahl Jr f75372d2c2 Revert some stuff
2017-10-22 23:25:43 +00:00

19 lines
429 B
JavaScript

const { Command } = require('discord.js-commando');
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).format());
}
};