Current Changes are in

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 22:25:44 +00:00
parent c2f06d25b1
commit 5329d08581
12 changed files with 103 additions and 90 deletions
+4 -4
View File
@@ -26,15 +26,15 @@ module.exports = class ContactCommand extends commando.Command {
let banID = message.author.id;
let messageToReport = message.content.split(" ").slice(1).join(" ");
if (message.author.id === banlist.banned[banID]) {
return message.channel.send("Sorry, you've been banned from using this command.");
let banError = await 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!');
let blankError = await message.channel.send(':x: Error! Please do not report nothing!');
}
else {
await 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!');
let errorRepoty = await this.client.users.get(config.owner).send(`**${message.author.username}#${message.author.discriminator} (${message.author.id}):**\n${messageToReport}`);
let successMes = await message.channel.send('Message Sent! Thanks for your support!');
}
}
}