blob: 0c7675422c43267063670e59a316295c3403cbd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
const { Command } = require('discord.js-commando');
const upTime = require('moment');
require('moment-duration-format');
const emoji = require('emoji-random');
module.exports = class UptimeUtility extends Command {
constructor(client) {
super(client, {
name: 'uptime',
aliases: ['ut'],
group: 'utility',
memberName: 'uptime',
description: 'tells you how long the bot has been online',
throttling: {
usages: 5,
duration: 30
},
examples: [
's5n!uptime',
's5n!ut'
]
});
}
run(msg) {
const duration = upTime.duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
msg.reply(duration + ' ' + emoji.random());
}
};
|