mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Remove all useless async
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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*`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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*`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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...*`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user