Some Args and empty tests

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 23:23:25 +00:00
parent b8854cddec
commit 8dd6ec1f9b
9 changed files with 141 additions and 161 deletions
+4 -8
View File
@@ -28,14 +28,10 @@ module.exports = class ContactCommand extends commando.Command {
if (message.author.id === banlist.banned[banID]) {
return message.channel.send("Sorry, you've been banned from using this command.");
}
else {
if (!messageToReport) {
return message.channel.send(':x: Error! Please do not report nothing!');
}
else {
this.client.users.get(config.owner).send(`**${message.author.username}#${message.author.discriminator} (${message.author.id}):**\n${messageToReport}`);
return message.channel.send('Message Sent! Thanks for your support!');
}
else if (!messageToReport) {
return message.channel.send(':x: Error! Please do not report nothing!');
}
this.client.users.get(config.owner).send(`**${message.author.username}#${message.author.discriminator} (${message.author.id}):**\n${messageToReport}`);
return message.channel.send('Message Sent! Thanks for your support!');
}
};