From 3733f7575faba8a06cc65c8eaf3612f80f46a44b Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Mon, 13 Apr 2020 03:54:31 -0700 Subject: test --- commands/utility/help.cjs | 29 +++++++++++++++++++++++++++++ commands/utility/help.js | 29 ----------------------------- commands/utility/uptime.cjs | 28 ++++++++++++++++++++++++++++ commands/utility/uptime.js | 28 ---------------------------- 4 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 commands/utility/help.cjs delete mode 100644 commands/utility/help.js create mode 100644 commands/utility/uptime.cjs delete mode 100644 commands/utility/uptime.js (limited to 'commands/utility') diff --git a/commands/utility/help.cjs b/commands/utility/help.cjs new file mode 100644 index 0000000..5b7174f --- /dev/null +++ b/commands/utility/help.cjs @@ -0,0 +1,29 @@ +const { Command } = require('discord.js-commando'); +const emoji = require('emoji-random'); +const { MessageEmbed } = require('discord.js'); + +module.exports = class HelpUtility extends Command { + constructor(client) { + super(client, { + name: 'help', + aliases: ['h'], + group: 'utility', + memberName: 'help', + description: 'Help.', + throttling: { + usages: 2, + duration: 5 + }, + guildOnly: true, + examples: ['msb!help', 'msb!h'] + }); + } + run(msg) { + let embed = new MessageEmbed() + .setColor(0x529B30) + .setTitle('MinecraftSoundtrackBot - Help') + .addField('Normal Commands', '**msb!join** - Joins your current voice channel.\n**msb!leave** - Leaves the voice channel and ends playback.\n**msb!loop** - Loops the soundtrack.\n**msb!pause** - Pauses soundtrack playback if playing.\n**msb!play** - Plays the Minecraft soundtrack.\n**msb!queue** - Displays the song queue\n**msb!remove** - Remove a certain song from the soundtrack queue.\n**msb!resume** - Resumes the soundtrack if paused.\n**msb!shuffle** - Shuffles the soundtrack queue.\n**msb!skip** - Skips one song ahead in the soundtrack queue.\n**msb!skipall** - Skips all the songs in the soundtrack queue.\n**msb!skipto** - Skip to a certain song in the soundtrack queue.\n**msb!volume** - Changes the volume of playback.') + .setFooter(`Bot developed and administrated by sin#1337.`, this.client.users.cache.get('217348698294714370').avatarURL()); + msg.say(embed); + } +}; \ No newline at end of file diff --git a/commands/utility/help.js b/commands/utility/help.js deleted file mode 100644 index 5b7174f..0000000 --- a/commands/utility/help.js +++ /dev/null @@ -1,29 +0,0 @@ -const { Command } = require('discord.js-commando'); -const emoji = require('emoji-random'); -const { MessageEmbed } = require('discord.js'); - -module.exports = class HelpUtility extends Command { - constructor(client) { - super(client, { - name: 'help', - aliases: ['h'], - group: 'utility', - memberName: 'help', - description: 'Help.', - throttling: { - usages: 2, - duration: 5 - }, - guildOnly: true, - examples: ['msb!help', 'msb!h'] - }); - } - run(msg) { - let embed = new MessageEmbed() - .setColor(0x529B30) - .setTitle('MinecraftSoundtrackBot - Help') - .addField('Normal Commands', '**msb!join** - Joins your current voice channel.\n**msb!leave** - Leaves the voice channel and ends playback.\n**msb!loop** - Loops the soundtrack.\n**msb!pause** - Pauses soundtrack playback if playing.\n**msb!play** - Plays the Minecraft soundtrack.\n**msb!queue** - Displays the song queue\n**msb!remove** - Remove a certain song from the soundtrack queue.\n**msb!resume** - Resumes the soundtrack if paused.\n**msb!shuffle** - Shuffles the soundtrack queue.\n**msb!skip** - Skips one song ahead in the soundtrack queue.\n**msb!skipall** - Skips all the songs in the soundtrack queue.\n**msb!skipto** - Skip to a certain song in the soundtrack queue.\n**msb!volume** - Changes the volume of playback.') - .setFooter(`Bot developed and administrated by sin#1337.`, this.client.users.cache.get('217348698294714370').avatarURL()); - msg.say(embed); - } -}; \ No newline at end of file diff --git a/commands/utility/uptime.cjs b/commands/utility/uptime.cjs new file mode 100644 index 0000000..34b073c --- /dev/null +++ b/commands/utility/uptime.cjs @@ -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/utility/uptime.js b/commands/utility/uptime.js deleted file mode 100644 index 34b073c..0000000 --- a/commands/utility/uptime.js +++ /dev/null @@ -1,28 +0,0 @@ -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 -- cgit v1.2.3