mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
20 lines
592 B
JavaScript
20 lines
592 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: 'Displays 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]'));
|
|
}
|
|
};
|