You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
19 lines
474 B
5 years ago
|
const { Command } = require('discord.js-commando');
|
||
|
const fun = require('../../js/functions.js');
|
||
|
const boot = new Date();
|
||
|
|
||
|
module.exports = class uptimeCommand extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: 'uptime',
|
||
|
aliases: ['u'],
|
||
|
group: 'bot',
|
||
|
memberName: 'uptime',
|
||
|
description: 'Get the bots uptime'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
run(msg) {
|
||
|
msg.say(fun.unixDur(boot, true))
|
||
|
}
|
||
|
}
|