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