mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Cleanup Stray Commands
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = class EmojiCommand extends commando.Command {
|
|||||||
|
|
||||||
async run(message) {
|
async run(message) {
|
||||||
if(message.channel.type !== 'dm') {
|
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);
|
console.log("[Command] " + message.content);
|
||||||
if (message.channel.type !== 'dm') {
|
if (message.channel.type !== 'dm') {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = class MemeCommand extends commando.Command {
|
|||||||
group: 'imageedit',
|
group: 'imageedit',
|
||||||
memberName: 'meme',
|
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)",
|
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"]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.type !== 'dm') {
|
||||||
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
|
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ client.on('guildCreate', guild => {
|
|||||||
|
|
||||||
client.on('guildDelete', guild => {
|
client.on('guildDelete', guild => {
|
||||||
console.log("[Guild] I have left the guild: " + guild.name + ", " + guild.owner.user.username + " (" + guild.id + ")...");
|
console.log("[Guild] I have left the guild: " + guild.name + ", " + guild.owner.user.username + " (" + guild.id + ")...");
|
||||||
client.guilds.get(config.server).channels.get('265503171835592704').send("I have left the guild: " + guild.name + " (Owner: " + guild.owner.user.username + ")...");
|
client.guilds.get(config.server).channels.get(config.announcementChannel).send("I have left the guild: " + guild.name + " (Owner: " + guild.owner.user.username + ")...");
|
||||||
client.shard.fetchClientValues('guilds.size').then(results => {
|
client.shard.fetchClientValues('guilds.size').then(results => {
|
||||||
console.log("[Guild Count] " + results.reduce((prev, val) => prev + val, 0));
|
console.log("[Guild Count] " + results.reduce((prev, val) => prev + val, 0));
|
||||||
request
|
request
|
||||||
|
|||||||
Reference in New Issue
Block a user