Фиксы, правки

This commit is contained in:
JonnyBro 2022-02-05 22:20:38 +05:00
parent 128a018df4
commit 0451784a15
6 changed files with 2 additions and 10 deletions

View file

@ -49,7 +49,7 @@ module.exports = class {
})
})
.setColor("#32CD32")
.setDescription(`Зашёл на сервер **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них ${bots} ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`);
.setDescription(`Зашёл на сервер **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них **${bots}** ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`);
this.client.channels.cache.get(this.client.config.support.logs).send({
embeds: [embed]
});

View file

@ -17,7 +17,7 @@ module.exports = class {
})
})
.setColor("#B22222")
.setDescription(`Вышел с сервера **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них ${bots} ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`);
.setDescription(`Вышел с сервера **${guild.name}**. На нём **${users}** ${this.client.getNoun(users, this.client.translate("misc:NOUNS:MEMBERS:1"), this.client.translate("misc:NOUNS:MEMBERS:2"), this.client.translate("misc:NOUNS:MEMBERS:5"))} (из них **${bots}** ${this.client.getNoun(bots, this.client.translate("misc:NOUNS:BOTS:1"), this.client.translate("misc:NOUNS:BOTS:2"), this.client.translate("misc:NOUNS:BOTS:5"))})`);
this.client.channels.cache.get(this.client.config.support.logs).send({
embeds: [embed]
});

View file

@ -21,8 +21,6 @@ module.exports = class {
}
async run(member) {
if (member.guild.id === "568120814776614924") return;
await member.guild.members.fetch();
const guildData = await this.client.findOrCreateGuild({

View file

@ -21,8 +21,6 @@ module.exports = class {
}
async run(member) {
if (member.guild.id === "568120814776614924") return;
await member.guild.members.fetch();
const guildData = await this.client.findOrCreateGuild({

View file

@ -4,8 +4,6 @@ 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")) {

View file

@ -8,8 +8,6 @@ module.exports = class {
}
async run(message) {
if (message.guild.id === "568120814776614924") return;
const data = {};
// If the message author is a bot