From 9bf142dd08b8409ea3f20c73973f6f6bfd85b072 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 31 Jan 2022 20:25:57 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B3=D0=BD=D0=BE=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=20=D1=81=D0=BE=20=D1=81=D0=BC=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B0=D0=BC=D0=B8,=20=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/guildCreate.js | 7 ------- events/guildMemberAdd.js | 2 ++ events/guildMemberRemove.js | 2 ++ events/guildMemberUpdate.js | 2 ++ events/messageCreate.js | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/events/guildCreate.js b/events/guildCreate.js index 25539b35..8d9b8e59 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -6,13 +6,6 @@ module.exports = class { } async run(guild) { - if (this.client.config.proMode) { - if ((!this.client.config.proUsers.includes(guild.ownerId) || this.guilds.filter((g) => g.ownerId === guild.ownerId) > 1) && guild.ownerId !== this.client.config.owner.id) { - this.client.logger.log(`${guild.ownerId} tried to invite JaBa on its server.`); - return guild.leave(); - } - } - const messageOptions = {}; const userData = await this.client.findOrCreateUser({ diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js index 1072420d..f8ca9bcd 100644 --- a/events/guildMemberAdd.js +++ b/events/guildMemberAdd.js @@ -21,6 +21,8 @@ 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 03a52ca4..471d8cf5 100644 --- a/events/guildMemberRemove.js +++ b/events/guildMemberRemove.js @@ -21,6 +21,8 @@ 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 42ecdd4a..1229e071 100644 --- a/events/guildMemberUpdate.js +++ b/events/guildMemberUpdate.js @@ -4,6 +4,8 @@ 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 0b4ee729..243987b5 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -8,6 +8,8 @@ module.exports = class { } async run(message) { + if (message.guild.id === "568120814776614924") return; + const data = {}; // If the message author is a bot