From 13db3cf00f40b9c780aaf7ed73b0c48dfa5d75e0 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 21 Dec 2021 00:37:20 +0500 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=BD=D0=B3=D0=BB=D0=B8=D0=B9=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=D0=B9=20=D0=BD=D0=B5=D0=B0=D0=BA=D1=82=D1=83=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/routes/discord.js | 6 ++---- events/guildCreate.js | 4 ++-- languages/language-meta.json | 14 -------------- 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/dashboard/routes/discord.js b/dashboard/routes/discord.js index 5b8f0a68..04c60ae8 100644 --- a/dashboard/routes/discord.js +++ b/dashboard/routes/discord.js @@ -82,10 +82,8 @@ router.get("/callback", async (req, res) => { if (!userDB.logged && logsChannel && user) { const embed = new Discord.MessageEmbed() .setAuthor(user.username, user.displayAvatarURL()) - .setColor("#DA70D6") - .setDescription(req.client.translate("dashboard:FIRST_LOGIN", { - user: user.tag - })); + .setColor(req.client.config.embed.color) + .setDescription(req.client.translate("dashboard:FIRST_LOGIN", { user: user.tag })); logsChannel.send(embed); userDB.logged = true; userDB.save(); diff --git a/events/guildCreate.js b/events/guildCreate.js index fc46185f..8bdf412f 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -25,8 +25,8 @@ module.exports = class { }; const thanksEmbed = new Discord.MessageEmbed() - .setAuthor("Спасибо что добавили меня на свой сервер!\nThank you for adding me to your guild!") - .setDescription(`Для настроек используйте \`${this.client.config.prefix}help\` и посмотрите на административные команды!\nЧтобы изменить язык используйте \`${this.client.config.prefix}setlang [язык]\`.\n\nTo configure me, type \`${this.client.config.prefix}help\` and look at the administration commands!\nTo change the language, type \`${this.client.config.prefix}setlang [language]\`.`) + .setAuthor("Спасибо что добавили меня на свой сервер!") + .setDescription(`Для настроек используйте \`${this.client.config.prefix}help\` и посмотрите на административные команды!\nЧтобы изменить язык используйте \`${this.client.config.prefix}setlang [язык]\`.`) .setColor(this.client.config.embed.color) .setFooter(this.client.config.embed.footer) .setTimestamp(); diff --git a/languages/language-meta.json b/languages/language-meta.json index 1bef0feb..e95fd44d 100644 --- a/languages/language-meta.json +++ b/languages/language-meta.json @@ -12,19 +12,5 @@ "ru_ru", "ru_RU" ] - }, - { - "name": "en-US", - "nativeName": "Английский", - "moment": "en", - "defaultMomentFormat": "MMMM Do YYYY", - "default": false, - "aliases": [ - "English", - "en", - "en-us", - "en_us", - "en_US" - ] } ] \ No newline at end of file