Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomato6966 authored Apr 1, 2021
1 parent db6c448 commit 34ef6cf
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion commands/MUSIC COMMANDS/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
if(message.guild.me.voice.channel) return functions.embedbuilder(client, 5000, message, config.colors.no, " I am already connected somewhere")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT"))
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT"))
return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//try to join the channel
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
if (!args[0]) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " Please add something you wanna search to")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if(!message.guild.me.voice.channel)
Expand All @@ -38,7 +38,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")

//send information message
functions.embedbuilder(client, 5000, message, config.colors.yes, "<:Playing:769665713124016128> Searching!", "```" + args.join(" ") + "```")
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/playsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
if (!args[0]) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " Please add something you wanna search to")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if(!message.guild.me.voice.channel)
Expand All @@ -33,7 +33,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")

//send information message
functions.embedbuilder(client, 5000, message, config.colors.yes, "<:soundcloud:792137871662252103> Searching!", "```" + args.join(" ") + "```")
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/playskip.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
if (!args[0]) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " Please add something you wanna search to")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if(!message.guild.me.voice.channel)
Expand All @@ -34,7 +34,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")

//if bot not connected use play
if (!message.guild.me.voice.channel) {
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: "Play one of the 200 Radio Station, or see them by just typing +radio in the chat!",
run: async (client, message, args) => {
//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if (!message.guild.me.voice.channel)
Expand All @@ -17,7 +17,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")


if (message.guild.me.voice.channel && args[0]) {
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
if (!args[0]) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " Please add something you wanna search to")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if(!message.guild.me.voice.channel)
Expand All @@ -32,7 +32,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")


//send information message
Expand Down
4 changes: 2 additions & 2 deletions commands/MUSIC COMMANDS/searchsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
if (!args[0]) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " Please add something you wanna search to")

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("CONNECT")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`join\` your Channel")

//If bot not connected, join the channel
if(!message.guild.me.voice.channel)
Expand All @@ -32,7 +32,7 @@ module.exports = {
})

//if not allowed to CONNECT to the CHANNEL
if (message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")
if (!message.guild.me.permissionsIn(message.member.voice.channel).has("SPEAK")) return functions.embedbuilder(client, 5000, message, config.colors.no, "`" + message.author.tag + "`" + " I am not allowed to \`speak\` your Channel")


//send information message
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ client.on("message", async message => {
prefix = matchedPrefix;

if (!message.content.startsWith(prefix) && message.content.includes(client.user.id))
if (message.guild.me.permissionsIn(message.channel).has("EMBED_LINKS"))
if (!message.guild.me.permissionsIn(message.channel).has("EMBED_LINKS"))
message.reply(new Discord.MessageEmbed().setColor(config.colors.yes).setAuthor(`${message.author.username}, My prefix is ${prefix}, to get started; type ${prefix}help`, message.author.displayAvatarURL({
dynamic: true
}), "https://dc.musicium.eu"));
Expand All @@ -109,7 +109,7 @@ client.on("message", async message => {
if (!message.content.startsWith(prefix)) return;

//if not allowed to send embeds, return that
if (message.guild.me.permissionsIn(message.channel).has("EMBED_LINKS"))
if (!message.guild.me.permissionsIn(message.channel).has("EMBED_LINKS"))
return message.reply("**:x: I am missing the Permission to `EMBED_LINKS`**")

//CHECK IF IN A BOT CHANNEL OR NOT
Expand Down

0 comments on commit 34ef6cf

Please sign in to comment.