mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
19 lines
448 B
JavaScript
19 lines
448 B
JavaScript
const Command = require('../../structures/Command');
|
|
const { duration } = require('../../structures/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 on this Shard.',
|
|
guarded: true
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(duration(this.client.uptime).format);
|
|
}
|
|
};
|