From 3221ffece10347a94d0da86c204efa2d808cb3f8 Mon Sep 17 00:00:00 2001 From: Zerio Date: Fri, 25 Dec 2020 14:01:40 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Bug=20fixes=20&=20update=20(v4.0.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/core/help.js | 4 ++-- commands/music/loop.js | 2 +- commands/music/stop.js | 2 +- commands/music/volume.js | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/core/help.js b/commands/core/help.js index b4bf481..325dab4 100644 --- a/commands/core/help.js +++ b/commands/core/help.js @@ -36,7 +36,7 @@ module.exports = { fields: [ { name: 'Name', value: command.name, inline: true }, { name: 'Category', value: command.category, inline: true }, - { name: 'Aliase(s)', value: command.aliases.length < 1 ? 'None' : command.aliases.join('\n'), inline: true }, + { name: 'Aliase(s)', value: command.aliases.length < 1 ? 'None' : command.aliases.join(', '), inline: true }, { name: 'Utilisation', value: command.utilisation.replace('{prefix}', client.config.discord.prefix), inline: true }, ], timestamp: new Date(), @@ -45,4 +45,4 @@ module.exports = { }); }; }, -}; +}; \ No newline at end of file diff --git a/commands/music/loop.js b/commands/music/loop.js index a62e496..bde42b1 100644 --- a/commands/music/loop.js +++ b/commands/music/loop.js @@ -1,6 +1,6 @@ module.exports = { name: 'loop', - aliases: ['lp'], + aliases: ['lp', 'repeat'], category: 'Music', utilisation: '{prefix}loop', diff --git a/commands/music/stop.js b/commands/music/stop.js index 3e23e00..57bd31b 100644 --- a/commands/music/stop.js +++ b/commands/music/stop.js @@ -1,6 +1,6 @@ module.exports = { name: 'stop', - aliases: [], + aliases: ['dc'], category: 'Music', utilisation: '{prefix}stop', diff --git a/commands/music/volume.js b/commands/music/volume.js index 966fc0d..0d84115 100644 --- a/commands/music/volume.js +++ b/commands/music/volume.js @@ -11,7 +11,7 @@ module.exports = { if (!client.player.getQueue(message)) return message.channel.send(`${client.emotes.error} - No music currently playing !`); - if (!args[0] || isNaN(args[0])) return message.channel.send(`${client.emotes.error} - Please enter a valid number !`); + if (!args[0] || isNaN(args[0]) || args[0] === 'Infinity') return message.channel.send(`${client.emotes.error} - Please enter a valid number !`); if (Math.round(parseInt(args[0])) < 1 || Math.round(parseInt(args[0])) > 100) return message.channel.send(`${client.emotes.error} - Please enter a valid number (between 1 and 100) !`); diff --git a/package.json b/package.json index b511364..92aeded 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "music-bot", "main": "index.js", "author": "ZerioDev", - "version": "4.0.1", + "version": "4.0.2", "repository": "https://github.com/ZerioDev/Music-bot.git", "description": "A complete code to download for a music bot. Using a module (discord-player).", "dependencies": {