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