mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 14:14:59 +05:00
Попытка фикса рандомных ошибок от сервера с эмодзи
This commit is contained in:
parent
f1d47c730f
commit
ad56892994
5 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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")) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue