All messages reworked

This commit is contained in:
MatteZ02
2020-03-12 02:50:05 +02:00
parent 035173b6cc
commit 0a1806c9ac
9 changed files with 22 additions and 32 deletions

View File

@ -4,16 +4,6 @@ module.exports = {
if (msg.author.bot || !msg.guild) return;
let prefix = client.config.prefix;
const args = msg.content.slice(prefix.length).split(' ');
if (msg.mentions.users.first()) {
if (msg.mentions.users.first().id === client.user.id) {
if (!args[1]) return;
if (args[1] === 'prefix') return msg.channel.send(`My prefix here is: \`${prefix}\`.`);
if (args[1] === 'help') {
const command = client.commands.get("help");
return client.funcs.exe(msg, args, client, Discord, prefix, command);
}
}
}
if (!msg.content.startsWith(prefix)) return;
if (!args[0]) return;
const commandName = args[0].toLowerCase();

View File

@ -24,7 +24,7 @@ module.exports = {
radio.voiceChannel.leave();
client.radio.delete(msg.guild.id);
client.debug_channel.send("Error with connecting to voice channel: " + error);
return msg.channel.send(`<:redx:674263474704220182> An error occured: ${error}`);
return msg.channel.send(`An error occured: ${error}`);
}
}
if (newState.channel !== radio.voiceChannel) {