✨ Bug fixes & update (v3.0.0)
This commit is contained in:
3
player/botDisconnect.js
Normal file
3
player/botDisconnect.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, queue) => {
|
||||
message.channel.send(`${client.emotes.error} - Music stopped as i have been disconnected from the channel !`);
|
||||
};
|
||||
3
player/channelEmpty.js
Normal file
3
player/channelEmpty.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, queue) => {
|
||||
message.channel.send(`${client.emotes.error} - Music stopped as there is no more member in the voice channel !`);
|
||||
};
|
||||
15
player/error.js
Normal file
15
player/error.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = (client, error, message) => {
|
||||
switch (error) {
|
||||
case 'NotPlaying':
|
||||
message.channel.send(`${client.emotes.error} - There is no music being played on this server !`);
|
||||
break;
|
||||
case 'NotConnected':
|
||||
message.channel.send(`${client.emotes.error} - You are not connected in any voice channel !`);
|
||||
break;
|
||||
case 'UnableToJoin':
|
||||
message.channel.send(`${client.emotes.error} - I am not able to join your voice channel, please check my permissions !`);
|
||||
break;
|
||||
default:
|
||||
message.channel.send(`${client.emotes.error} - Something went wrong ... Error : ${error}`);
|
||||
};
|
||||
};
|
||||
3
player/noResults.js
Normal file
3
player/noResults.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, query) => {
|
||||
message.channel.send(`${client.emotes.error} - No results found on YouTube for ${query} !`);
|
||||
};
|
||||
3
player/playlistAdd.js
Normal file
3
player/playlistAdd.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, playlist) => {
|
||||
message.channel.send(`${client.emotes.music} - ${playlist.title} has been added to the queue (**${playlist.items.length}** songs) !`);
|
||||
};
|
||||
3
player/queueEnd.js
Normal file
3
player/queueEnd.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, queue) => {
|
||||
message.channel.send(`${client.emotes.error} - Music stopped as there is no more music in the queue !`);
|
||||
};
|
||||
3
player/searchCancel.js
Normal file
3
player/searchCancel.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, query, tracks) => {
|
||||
message.channel.send(`${client.emotes.error} - You did not provide a valid response ... Please send the command again !`);
|
||||
};
|
||||
3
player/searchInvalidResponse.js
Normal file
3
player/searchInvalidResponse.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, query, tracks, content, collector) => {
|
||||
message.channel.send(`${client.emotes.error} - You must send a valid number between **1** and **${tracks.length}** !`);
|
||||
};
|
||||
11
player/searchResults.js
Normal file
11
player/searchResults.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = (client, message, query, tracks) => {
|
||||
message.channel.send({
|
||||
embed: {
|
||||
color: 'BLUE',
|
||||
author: { name: `Here are your search results for ${query}` },
|
||||
footer: { text: 'This bot uses a Github project made by Zerio (ZerioDev/Music-bot)' },
|
||||
timestamp: new Date(),
|
||||
description: `${tracks.map((t, i) => `**${i + 1}** - ${t.title}`).join('\n')}`,
|
||||
},
|
||||
});
|
||||
};
|
||||
3
player/trackAdd.js
Normal file
3
player/trackAdd.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, queue, track) => {
|
||||
message.channel.send(`${client.emotes.music} - ${track.title} has been added to the queue !`);
|
||||
};
|
||||
3
player/trackStart.js
Normal file
3
player/trackStart.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, message, track) => {
|
||||
message.channel.send(`${client.emotes.music} - Now playing ${track.title} into ${message.member.voice.channel.name} ...`);
|
||||
};
|
||||
Reference in New Issue
Block a user