1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-18 05:26:00 +00:00

Debug channel conflict resolved

This commit is contained in:
MatteZ02
2020-04-06 00:20:34 +03:00
parent a06f616a98
commit a47ffd1012
16 changed files with 314 additions and 560 deletions

View File

@ -6,15 +6,14 @@ module.exports = {
dblKey: process.env.DBLKEY,
api_key: process.env.GOOGLE_API_KEY,
testServer: "489111553321336832",
debug_channel: "634718645188034560",
primary_test_channel: "617633098296721409",
secondary_test_channel: "570531724002328577",
devId: "360363051792203779",
embedColor: "#b50002",
invite: "https://discordapp.com/oauth2/authorize?client_id=607266889537945605&permissions=3427328&scope=bot",
supportServer: "https://discord.gg/rvHuJtB",
devMode: false,
dblApi: false,
devMode: true,
api: false,
saveDB: true,
respawn: true,
shards: 10,

View File

@ -18,7 +18,7 @@ module.exports = function (client, msg, command) {
} else return true;
} else if (!permissions.has(command.permission)) {
let message
message = client.messages.noPerms.replace("%PERMS%", commands.permissions);
message = client.messages.noPerms.replace("%PERMS%", command.permissions);
msg.channel.send(message);
return false;
} else return true;

View File

@ -13,7 +13,7 @@ module.exports = function (msg, args, client, Discord, command) {
.setDescription(error.stack.replace(/at /g, '**at **'))
.setFooter(`guild: ${msg.guild.id} (${msg.guild.name}), user: ${msg.member.id} (${msg.member.displayName}), channel: ${msg.channel.id} (${msg.channel.name}), date: ${date}, Shard: ${client.shard.ids}`)
.setColor('#b50002');
client.debug_channel.send(embed);
client.users.cache.get(client.devId).send(embed);
console.error(error);
}
};

View File

@ -4,6 +4,6 @@ module.exports = async function (client) {
await client.channels.fetch(client.config.secondary_test_channel)
.then(x => x.join());
} catch (error) {
client.debug_channel.send(client.messages.errorDetected + error);
client.users.cache.get(client.config.devId).send(client.messages.errorDetected + error);
}
};

View File

@ -33,7 +33,7 @@ module.exports = async function (video, msg, voiceChannel, client, playlist = fa
client.funcs.play(msg.guild, construct.songs[0], client, 0, true);
} catch (error) {
client.queue.delete(msg.guild.id);
client.debug_channel.send(client.messages.errorConnecting + error);
client.users.cache.get(client.config.devId).send(client.messages.errorConnecting + error);
return msg.channel.send(client.messages.error);
}
return;