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()); } };