Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ client.on('message', async msg => {

if (!permissions.has('CONNECT')) {

return msg.channel.send("I don't have enough permissions to join your voice channel!");
return msg.channel.send("I don't have the permissions needed to join your voice channel!");
}

if (!permissions.has('SPEAK')) {

return msg.channel.send("I don't have enough permissions to speak in your voice channel!");
return msg.channel.send("I don't have the permissions needed to speak in your voice channel!");
}

if (!permissions.has('EMBED_LINKS')) {

return msg.channel.sendMessage("I don't have enough permissions to insert a URLs!")
return msg.channel.sendMessage("I don't have the permissions needed to insert URLs!")
}

if (url.match(/^https?:\/\/(www.youtube.com|youtube.com)\/playlist(.*)$/)) {
Expand All @@ -132,7 +132,7 @@ client.on('message', async msg => {
const video2 = await youtube.getVideoByID(video.id);
await handleVideo(video2, msg, voiceChannel, true);
}
return msg.channel.send(`**${playlist.title}**, Just added to the queue!`);
return msg.channel.send(`**${playlist.title}**, Was just added to the queue!`);
} else {

try {
Expand Down Expand Up @@ -162,7 +162,7 @@ client.on('message', async msg => {
});
} catch (err) {
console.error(err);
return msg.channel.send('No one respone a number!!');
return msg.channel.send('No one responed with a number!!');
}

const videoIndex = parseInt(response.first().content);
Expand Down