From b7d90d4610a9b6e0ce09d7033dd96a28784a2fe1 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 1 Apr 2022 17:57:58 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D0=B8=D1=80=D0=B0=D0=B5=D0=BC=20?= =?UTF-8?q?=D1=85=D0=B0=D1=80=D0=B4=D0=BA=D0=BE=D0=B4=20=D0=B8=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=B0=D1=82=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B1=D1=83=D0=B4=D1=83=D1=89=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/profile.js | 2 +- commands/General/help.js | 6 +++--- commands/General/invite.js | 2 +- commands/General/serverinfo.js | 2 +- commands/General/stats.js | 6 +++--- events/ready.js | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/commands/Economy/profile.js b/commands/Economy/profile.js index 3b7fce58..d7c9685e 100644 --- a/commands/Economy/profile.js +++ b/commands/Economy/profile.js @@ -63,7 +63,7 @@ class Profile extends Command { }) }) .setImage("attachment://achievements.png") - .addField(this.client.customEmojis.link + " " + message.translate("economy/profile:LINK"), `[${message.translate("economy/profile:LINK_TEXT")}](https://jaba.pp.ua/user/${member.user.id}/${message.guild.id})`) + .addField(this.client.customEmojis.link + " " + message.translate("economy/profile:LINK"), `[${message.translate("economy/profile:LINK_TEXT")}](${this.client.config.dashboard.baseURL}/user/${member.user.id}/${message.guild.id})`) .addField(message.translate("economy/profile:BIO"), userData.bio ? userData.bio : message.translate("economy/profile:NO_BIO")) .addField(message.translate("economy/profile:CASH"), `**${memberData.money}** ${message.getNoun(memberData.money, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`, true) .addField(message.translate("economy/profile:BANK"), `**${memberData.bankSold}** ${message.getNoun(memberData.bankSold, message.translate("misc:NOUNS:CREDIT:1"), message.translate("misc:NOUNS:CREDIT:2"), message.translate("misc:NOUNS:CREDIT:5"))}`, true) diff --git a/commands/General/help.js b/commands/General/help.js index d2bb4cbf..882c3d08 100644 --- a/commands/General/help.js +++ b/commands/General/help.js @@ -91,9 +91,9 @@ class Help extends Command { } embed.addField("\u200B", message.translate("misc:STATS_FOOTER", { - dashboardLink: "https://jaba.pp.ua/", - docsLink: "https://jaba.pp.ua/docs/", - inviteLink: this.client.generateInvite({ scopes: ["bot"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }), + dashboardLink: this.client.config.dashboard.baseURL, + docsLink: `${this.client.config.dashboard.baseURL}/docs/`, + inviteLink: this.client.generateInvite({ scopes: ["bot", "applications.commands"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }), donateLink: "https://qiwi.com/n/JONNYBRO/", owner: data.config.owner.id })); diff --git a/commands/General/invite.js b/commands/General/invite.js index af217038..04b1910c 100644 --- a/commands/General/invite.js +++ b/commands/General/invite.js @@ -19,7 +19,7 @@ class Invite extends Command { async run(message, args, data) { const inviteLink = this.client.generateInvite({ - scopes: ["bot"], + scopes: ["bot", "applications.commands"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }); const donateLink = "https://qiwi.com/n/JONNYBRO/"; diff --git a/commands/General/serverinfo.js b/commands/General/serverinfo.js index 3ee4d891..77925b44 100644 --- a/commands/General/serverinfo.js +++ b/commands/General/serverinfo.js @@ -41,7 +41,7 @@ class Serverinfo extends Command { .setThumbnail(guild.iconURL({ dynamic: true })) - .addField(this.client.customEmojis.link + " " + message.translate("general/serverinfo:LINK"), `[${message.translate("general/serverinfo:LINK_TEXT")}](https://jaba.pp.ua/stats/${guild.id})`) + .addField(this.client.customEmojis.link + " " + message.translate("general/serverinfo:LINK"), `[${message.translate("general/serverinfo:LINK_TEXT")}](${this.client.config.dashboard.baseURL}/stats/${guild.id})`) .addField(this.client.customEmojis.title + message.translate("common:NAME"), guild.name, true) .addField(this.client.customEmojis.calendar + message.translate("common:CREATION"), message.printDate(guild.createdAt), true) .addField(this.client.customEmojis.users + message.translate("common:MEMBERS"), diff --git a/commands/General/stats.js b/commands/General/stats.js index 267b6dce..5ff799e6 100644 --- a/commands/General/stats.js +++ b/commands/General/stats.js @@ -48,9 +48,9 @@ class Stats extends Command { translators: ["**`Jonny_Bro#4226`** - :flag_ru:", "**`[ДАННЫЕ УДАЛЕНЫ]#4507`** - :flag_ua:"].join("\n") })) .addField(this.client.customEmojis.link + " " + message.translate("general/stats:LINKS_TITLE"), message.translate("misc:STATS_FOOTER", { - dashboardLink: "https://jaba.pp.ua/", - docsLink: "https://jaba.pp.ua/docs/", - inviteLink: this.client.generateInvite({ scopes: ["bot"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }), + dashboardLink: this.client.config.dashboard.baseURL, + docsLink: `${this.client.config.dashboard.baseURL}/docs/`, + inviteLink: this.client.generateInvite({ scopes: ["bot", "applications.commands"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }), donateLink: "https://qiwi.com/n/JONNYBRO/", owner: data.config.owner.id })); diff --git a/events/ready.js b/events/ready.js index ef19db04..df26fd5a 100644 --- a/events/ready.js +++ b/events/ready.js @@ -14,7 +14,7 @@ module.exports = class { // Logs some informations using logger client.logger.log(`Loading a total of ${client.commands.size} command(s).`, "log"); client.logger.log(`${client.user.tag}, ready to serve ${tUsers} users in ${tServers} servers.`, "ready"); - client.logger.log(`Invite Link: ${client.generateInvite({ scopes: ["bot"] , permissions: [Permissions.FLAGS.ADMINISTRATOR] })}`, "ready"); + client.logger.log(`Invite Link: ${client.generateInvite({ scopes: ["bot", "applications.commands"] , permissions: [Permissions.FLAGS.ADMINISTRATOR] })}`, "ready"); // Discord Together const discordtogether = require("../helpers/discordTogether");