✨ Events & update (v2.0.0)
This commit is contained in:
5
player-events/channelEmpty.js
Normal file
5
player-events/channelEmpty.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, queue) => {
|
||||
|
||||
message.channel.send(`${client.emotes.error} - Music stopped as there is no more member in the voice channel !`);
|
||||
|
||||
};
|
||||
17
player-events/error.js
Normal file
17
player-events/error.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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}`);
|
||||
};
|
||||
|
||||
};
|
||||
5
player-events/noResults.js
Normal file
5
player-events/noResults.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, query) => {
|
||||
|
||||
message.channel.send(`${client.emotes.error} - No results found on YouTube for ${query} !`);
|
||||
|
||||
};
|
||||
5
player-events/playlistAdd.js
Normal file
5
player-events/playlistAdd.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, playlist) => {
|
||||
|
||||
message.channel.send(`${client.emotes.music} - ${playlist.title} has been added to the queue (**${playlist.items.length}** songs) !`);
|
||||
|
||||
};
|
||||
5
player-events/queueEnd.js
Normal file
5
player-events/queueEnd.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, queue) => {
|
||||
|
||||
message.channel.send(`${client.emotes.error} - Music stopped as there is no more music in the queue !`);
|
||||
|
||||
};
|
||||
5
player-events/searchCancel.js
Normal file
5
player-events/searchCancel.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, query, tracks) => {
|
||||
|
||||
message.channel.send(`${client.emotes.error} - You did not provide a valid response ... Please send the command again !`);
|
||||
|
||||
};
|
||||
5
player-events/searchInvalidResponse.js
Normal file
5
player-events/searchInvalidResponse.js
Normal file
@@ -0,0 +1,5 @@
|
||||
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}** !`);
|
||||
|
||||
};
|
||||
13
player-events/searchResults.js
Normal file
13
player-events/searchResults.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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')}`,
|
||||
},
|
||||
});
|
||||
|
||||
};
|
||||
5
player-events/trackAdd.js
Normal file
5
player-events/trackAdd.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = (client, message, queue, track) => {
|
||||
|
||||
message.channel.send(`${client.emotes.music} - ${track.title} has been added to the queue !`);
|
||||
|
||||
};
|
||||
5
player-events/trackStart.js
Normal file
5
player-events/trackStart.js
Normal file
@@ -0,0 +1,5 @@
|
||||
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