diff options
| author | 8cy <[email protected]> | 2020-04-12 19:34:00 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-12 19:34:00 -0700 |
| commit | a860673b5af614443be5cec4f6522cf204543cd3 (patch) | |
| tree | 36da511311fe486c10b8ec6eda81496b227060cc /commands | |
| parent | set activity to help instead of play, v1.0.1 (diff) | |
| download | minecraftsoundtrackbot-a860673b5af614443be5cec4f6522cf204543cd3.tar.xz minecraftsoundtrackbot-a860673b5af614443be5cec4f6522cf204543cd3.zip | |
formatting and wording, v1.1.0
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/utility/uptime.js | 28 | ||||
| -rw-r--r-- | commands/voice/queue.js | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/commands/utility/uptime.js b/commands/utility/uptime.js new file mode 100644 index 0000000..34b073c --- /dev/null +++ b/commands/utility/uptime.js @@ -0,0 +1,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: [ + 'msb!uptime', + 'msb!ut' + ] + }); + } + run(msg) { + const duration = upTime.duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); + msg.reply(duration + ' ' + emoji.random()); + } +};
\ No newline at end of file diff --git a/commands/voice/queue.js b/commands/voice/queue.js index abc4b9b..ac9c236 100644 --- a/commands/voice/queue.js +++ b/commands/voice/queue.js @@ -43,7 +43,7 @@ module.exports = class QueueVoice extends Command { .setTitle('Soundtrack Queue ' + emoji.random()); for (let i = 0; i < titleArray.length; i++) { queueEmbed - .addField(``, `${i + 1}: ` + `${titleArray[i]}`) + .addField(``, `**${i + 1}**: ` + `${titleArray[i]}`) .setFooter(`Bot developed and administrated by sin#1337.`, this.client.users.cache.get('217348698294714370').avatarURL()); } return msg.say(queueEmbed); |