✨ Bug fixes & update (v4.0.2)
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = {
|
|||||||
fields: [
|
fields: [
|
||||||
{ name: 'Name', value: command.name, inline: true },
|
{ name: 'Name', value: command.name, inline: true },
|
||||||
{ name: 'Category', value: command.category, 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 },
|
{ name: 'Utilisation', value: command.utilisation.replace('{prefix}', client.config.discord.prefix), inline: true },
|
||||||
],
|
],
|
||||||
timestamp: new Date(),
|
timestamp: new Date(),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'loop',
|
name: 'loop',
|
||||||
aliases: ['lp'],
|
aliases: ['lp', 'repeat'],
|
||||||
category: 'Music',
|
category: 'Music',
|
||||||
utilisation: '{prefix}loop',
|
utilisation: '{prefix}loop',
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'stop',
|
name: 'stop',
|
||||||
aliases: [],
|
aliases: ['dc'],
|
||||||
category: 'Music',
|
category: 'Music',
|
||||||
utilisation: '{prefix}stop',
|
utilisation: '{prefix}stop',
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (!client.player.getQueue(message)) return message.channel.send(`${client.emotes.error} - No music currently playing !`);
|
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) !`);
|
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) !`);
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "music-bot",
|
"name": "music-bot",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "ZerioDev",
|
"author": "ZerioDev",
|
||||||
"version": "4.0.1",
|
"version": "4.0.2",
|
||||||
"repository": "https://github.com/ZerioDev/Music-bot.git",
|
"repository": "https://github.com/ZerioDev/Music-bot.git",
|
||||||
"description": "A complete code to download for a music bot. Using a module (discord-player).",
|
"description": "A complete code to download for a music bot. Using a module (discord-player).",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user