Cleanup Stray Commands

This commit is contained in:
Daniel Odendahl Jr
2017-03-22 01:06:56 +00:00
parent 1063b7e3c2
commit 3b1fe16ada
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class EmojiCommand extends commando.Command {
async run(message) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log("[Command] " + message.content);
if (message.channel.type !== 'dm') {
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = class MemeCommand extends commando.Command {
group: 'imageedit',
memberName: 'meme',
description: "Sends a Meme with text of your choice, and a background of your choice. Split first and second lines with a | (;meme facepalm I can't even | comprehend this)",
examples: [";meme facepalm I can't even | comprehend this"]
examples: [";meme facepalm I can't even | comprehend this", ";meme list"]
});
}
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = class PotatoCommand extends commando.Command {
});
}
async run(message, args) {
async run(message) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}