From 0451784a1533c5a41045f87671b91bb6d00ee934 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 5 Feb 2022 22:20:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B,=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/guildCreate.js | 2 +- events/guildDelete.js | 2 +- events/guildMemberAdd.js | 2 -- events/guildMemberRemove.js | 2 -- events/guildMemberUpdate.js | 2 -- events/messageCreate.js | 2 -- 6 files changed, 2 insertions(+), 10 deletions(-) diff --git a/events/guildCreate.js b/events/guildCreate.js index 34d15087..b2759e2c 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -49,7 +49,7 @@ module.exports = class { }) }) .setColor("#32CD32") - .setDescription(`Зашёл на сервер **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них ${bots} ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`); + .setDescription(`Зашёл на сервер **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них **${bots}** ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`); this.client.channels.cache.get(this.client.config.support.logs).send({ embeds: [embed] }); diff --git a/events/guildDelete.js b/events/guildDelete.js index 5cc81f17..bcf870f0 100644 --- a/events/guildDelete.js +++ b/events/guildDelete.js @@ -17,7 +17,7 @@ module.exports = class { }) }) .setColor("#B22222") - .setDescription(`Вышел с сервера **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них ${bots} ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`); + .setDescription(`Вышел с сервера **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них **${bots}** ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`); this.client.channels.cache.get(this.client.config.support.logs).send({ embeds: [embed] }); diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js index f8ca9bcd..1072420d 100644 --- a/events/guildMemberAdd.js +++ b/events/guildMemberAdd.js @@ -21,8 +21,6 @@ module.exports = class { } async run(member) { - if (member.guild.id === "568120814776614924") return; - await member.guild.members.fetch(); const guildData = await this.client.findOrCreateGuild({ diff --git a/events/guildMemberRemove.js b/events/guildMemberRemove.js index 471d8cf5..03a52ca4 100644 --- a/events/guildMemberRemove.js +++ b/events/guildMemberRemove.js @@ -21,8 +21,6 @@ module.exports = class { } async run(member) { - if (member.guild.id === "568120814776614924") return; - await member.guild.members.fetch(); const guildData = await this.client.findOrCreateGuild({ diff --git a/events/guildMemberUpdate.js b/events/guildMemberUpdate.js index 1229e071..42ecdd4a 100644 --- a/events/guildMemberUpdate.js +++ b/events/guildMemberUpdate.js @@ -4,8 +4,6 @@ module.exports = class { } async run(oldMember, newMember) { - if (newMember.guild.id === "568120814776614924") return; - if (oldMember.guild.id !== this.client.config.support.id) return; if (oldMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) return; if (newMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) { diff --git a/events/messageCreate.js b/events/messageCreate.js index 243987b5..0b4ee729 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -8,8 +8,6 @@ module.exports = class { } async run(message) { - if (message.guild.id === "568120814776614924") return; - const data = {}; // If the message author is a bot