From ad56892994e17b26f29e146a99441355b12b5beb Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 13 Feb 2022 16:50:44 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B0=20=D1=80=D0=B0=D0=BD=D0=B4=D0=BE?= =?UTF-8?q?=D0=BC=D0=BD=D1=8B=D1=85=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=BE=D1=82=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=B0=20?= =?UTF-8?q?=D1=81=20=D1=8D=D0=BC=D0=BE=D0=B4=D0=B7=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/app.js | 1 + events/guildMemberAdd.js | 2 ++ events/guildMemberRemove.js | 2 ++ events/guildMemberUpdate.js | 2 ++ events/messageCreate.js | 2 ++ 5 files changed, 9 insertions(+) diff --git a/dashboard/app.js b/dashboard/app.js index ec107f41..c42c6641 100644 --- a/dashboard/app.js +++ b/dashboard/app.js @@ -66,6 +66,7 @@ module.exports.load = async(client) => { .use(CheckAuth, function(err, req, res) { console.error(err.stack); if (!req.user) return res.redirect("/"); + res.status(500).render("500", { user: req.userInfos, translate: req.translate, 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..26e197be 100644 --- a/events/guildMemberUpdate.js +++ b/events/guildMemberUpdate.js @@ -4,6 +4,8 @@ module.exports = class { } async run(oldMember, newMember) { + if (oldMember.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 3b646642..08633144 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