mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
fixed dev bypass
This commit is contained in:
parent
afd2b3600f
commit
6d23063a30
@ -10,7 +10,7 @@ module.exports = {
|
||||
const { voiceChannel } = message.member;
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
||||
if (serverQueue.playing) {
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to loop the queue!');
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
|
@ -11,7 +11,7 @@ module.exports = {
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
||||
if (serverQueue.playing && !serverQueue.paused) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to pause the music!');
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
if (!message.member.roles.has(client.global.db.guilds[message.guild.id].djrole)) return message.channel.send(':x: You need the `DJ` role to pause the music!');
|
||||
|
@ -20,7 +20,7 @@ module.exports = {
|
||||
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
||||
.setColor('#b50002')
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
if (!message.member.roles.has(client.global.db.guilds[message.guild.id].djrole)) return message.channel.send(':x: You need the `DJ` role to modify or play the playlist!');
|
||||
} else if (!permissions.has('MANAGE_GUILD')) return message.channel.send(':x: You need the `MANAGE_SERVER` permission to modify the playlist!');
|
||||
|
@ -15,7 +15,7 @@ module.exports = {
|
||||
if (isNaN(pos)) return message.channel.send(':x: You need to enter a number!');
|
||||
if (pos === 0) return message.channel.send(':x: You can not remove the currently playing song!');
|
||||
if (pos > serverQueue.songs.size) return message.channel.send(`:x: There is only ${serverQueue.songs.size} amount of songs in the queue!`);
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to remove songs!');
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
if (serverQueue.songs[pos].author !== message.author) {
|
||||
|
@ -10,7 +10,7 @@ module.exports = {
|
||||
const { voiceChannel } = message.member;
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
||||
if (serverQueue.playing && serverQueue.paused) {
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to loop the queue!');
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
|
@ -18,7 +18,7 @@ module.exports = {
|
||||
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
||||
.setColor('#b50002')
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (!permissions.has('MANAGE_GUILD')) return message.channel.send(':x: You need the `MANAGE_SERVER` permission to change the settings!');
|
||||
}
|
||||
if (args[1]) {
|
||||
|
@ -10,7 +10,7 @@ module.exports = {
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing that I could skip for you.');
|
||||
if (!serverQueue.playing) return message.channel.send(':x: There is nothing playing that I could skip for you.');
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to skip the song!');
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (!message.member.roles.has(client.global.db.guilds[message.guild.id].djrole) && !permissions.has('MANAGE_MESSAGES')) {
|
||||
|
@ -10,7 +10,7 @@ module.exports = {
|
||||
const permissions = message.channel.permissionsFor(message.author);
|
||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing that I could stop for you.');
|
||||
if (!serverQueue.playing) return message.channel.send(':x: There is nothing playing that I could stop for you.');
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to stop the music!');
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
|
@ -12,7 +12,7 @@ module.exports = {
|
||||
if (!serverQueue.playing) return message.channel.send(':x: There is nothing playing.');
|
||||
if (!args[1]) return message.channel.send(`:loud_sound: The current volume is: **${serverQueue.volume}**`);
|
||||
const volume = parseFloat(args[1]);
|
||||
if (message.author.id !== client.config.dev) {
|
||||
if (message.author.id !== client.config.devId) {
|
||||
if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to change the volume!');
|
||||
if (client.global.db.guilds[message.guild.id].permissions === true) {
|
||||
if (client.global.db.guilds[message.guild.id].dj) {
|
||||
|
Loading…
Reference in New Issue
Block a user