Stop Logging Command Use

This commit is contained in:
Daniel Odendahl Jr
2017-04-08 03:35:45 +00:00
parent fb88513e4f
commit 01c7b13981
102 changed files with 1 additions and 102 deletions
-1
View File
@@ -40,7 +40,6 @@ module.exports = class BanCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
if (!message.channel.permissionsFor(this.client.user).hasPermission('BAN_MEMBERS')) return message.say(':x: Error! I don\'t have the Ban Members Permission!');
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const member = args.member;
const reason = args.reason;
-1
View File
@@ -37,7 +37,6 @@ module.exports = class KickCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
if (!message.channel.permissionsFor(this.client.user).hasPermission('KICK_MEMBERS')) return message.say(':x: Error! I don\'t have the Kick Members Permission!');
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const member = args.member;
const reason = args.reason;
-1
View File
@@ -31,7 +31,6 @@ module.exports = class LockdownCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'SEND_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(':x: Error! I don\'t have the Administrator permission! This is not given by default, as that\'s quite bad practice. Please give it to me to use the lockdown command!');
}
console.log(`[Command] ${message.content}`);
const type = args.type;
if (type.toLowerCase() === 'start') {
try {
-1
View File
@@ -44,7 +44,6 @@ module.exports = class PruneCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGE_HISTORY')) return message.say(':x: Error! I don\'t have the Read Message History Permission!');
if (!message.channel.permissionsFor(this.client.user).hasPermission('MANAGE_MESSAGES')) return message.say(':x: Error! I don\'t have the Manage Messages Permission!');
}
console.log(`[Command] ${message.content}`);
const count = args.count + 1;
try {
const messages = await message.channel.fetchMessages({
-1
View File
@@ -46,7 +46,6 @@ module.exports = class UnbanCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
if (!message.channel.permissionsFor(this.client.user).hasPermission('BAN_MEMBERS')) return message.say(':x: Error! I don\'t have the Ban Members Permission!');
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const memberID = args.memberID;
const reason = args.reason;
-1
View File
@@ -36,7 +36,6 @@ module.exports = class WarnCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
}
console.log(`[Command] ${message.content}`);
const userToWarn = args.member;
const reason = args.reason;
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');