Remove all useless async

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 12:16:58 +00:00
parent 33b7d18d54
commit 0ce7eb3ee1
95 changed files with 287 additions and 287 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class CuddleCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *cuddles* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *cuddles* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class DivorceCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *divorces* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *divorces* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class EatCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *eats* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *eats* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class FalconPunchCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *falcon punches* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *falcon punches* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class FistBumpCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *fist-bumps* ${thingToRoleplay} *badalalala*`);
return message.channel.send(`${message.author} *fist-bumps* ${thingToRoleplay} *badalalala*`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class HighFivesCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *high-fives* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *high-fives* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class HitwithShovelCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *hits* ${thingToRoleplay} *with a shovel*`);
return message.channel.send(`${message.author} *hits* ${thingToRoleplay} *with a shovel*`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class HugCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *hugs* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *hugs* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class InhaleCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *inhales* ${thingToRoleplay} *but gained no ability...*`);
return message.channel.send(`${message.author} *inhales* ${thingToRoleplay} *but gained no ability...*`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class KillCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *kills* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *kills* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class KissCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *kisses* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *kisses* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class MarryCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *marries* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *marries* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class PatCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *pats* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *pats* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class PokeCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *pokes* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *pokes* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class PunchCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *punches* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *punches* ${thingToRoleplay}`);
}
};
+2 -2
View File
@@ -11,12 +11,12 @@ module.exports = class SlapCommand extends commando.Command {
});
}
async run(message) {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
message.channel.send(`${message.author} *slaps* ${thingToRoleplay}`);
return message.channel.send(`${message.author} *slaps* ${thingToRoleplay}`);
}
};