mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Фиксы, правки
This commit is contained in:
parent
128a018df4
commit
0451784a15
6 changed files with 2 additions and 10 deletions
|
@ -49,7 +49,7 @@ module.exports = class {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.setColor("#32CD32")
|
.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({
|
this.client.channels.cache.get(this.client.config.support.logs).send({
|
||||||
embeds: [embed]
|
embeds: [embed]
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,7 +17,7 @@ module.exports = class {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.setColor("#B22222")
|
.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({
|
this.client.channels.cache.get(this.client.config.support.logs).send({
|
||||||
embeds: [embed]
|
embeds: [embed]
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,8 +21,6 @@ module.exports = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(member) {
|
async run(member) {
|
||||||
if (member.guild.id === "568120814776614924") return;
|
|
||||||
|
|
||||||
await member.guild.members.fetch();
|
await member.guild.members.fetch();
|
||||||
|
|
||||||
const guildData = await this.client.findOrCreateGuild({
|
const guildData = await this.client.findOrCreateGuild({
|
||||||
|
|
|
@ -21,8 +21,6 @@ module.exports = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(member) {
|
async run(member) {
|
||||||
if (member.guild.id === "568120814776614924") return;
|
|
||||||
|
|
||||||
await member.guild.members.fetch();
|
await member.guild.members.fetch();
|
||||||
|
|
||||||
const guildData = await this.client.findOrCreateGuild({
|
const guildData = await this.client.findOrCreateGuild({
|
||||||
|
|
|
@ -4,8 +4,6 @@ module.exports = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(oldMember, newMember) {
|
async run(oldMember, newMember) {
|
||||||
if (newMember.guild.id === "568120814776614924") return;
|
|
||||||
|
|
||||||
if (oldMember.guild.id !== this.client.config.support.id) return;
|
if (oldMember.guild.id !== this.client.config.support.id) return;
|
||||||
if (oldMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) return;
|
if (oldMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) return;
|
||||||
if (newMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) {
|
if (newMember.roles.cache.some((r) => r.name === "Поддержавшие JaBa")) {
|
||||||
|
|
|
@ -8,8 +8,6 @@ module.exports = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message) {
|
||||||
if (message.guild.id === "568120814776614924") return;
|
|
||||||
|
|
||||||
const data = {};
|
const data = {};
|
||||||
|
|
||||||
// If the message author is a bot
|
// If the message author is a bot
|
||||||
|
|
Loading…
Reference in a new issue