From 7b4732f33a0f886c1ac22de61bb962f8b327778b Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 19:42:33 +0500 Subject: [PATCH] change repository to old --- commands/General/github.js | 9 ++------- languages/en-US/general/github.json | 2 +- languages/ru-RU/general/github.json | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/commands/General/github.js b/commands/General/github.js index 029181a1..16030875 100644 --- a/commands/General/github.js +++ b/commands/General/github.js @@ -19,12 +19,7 @@ class Github extends Command { } async run(message, args, data) { - const res = await fetch("https://api.github.com/repos/JonnyBro/JaBa-new", { - headers: { - Authorization: data.config.githubToken - } - }); - console.log(res) + const res = await fetch("https://api.github.com/repos/JonnyBro/jaba-v2"); const json = await res.json(); const embed = new Discord.MessageEmbed() @@ -33,7 +28,7 @@ class Github extends Command { dynamic: true, format: "png" })) - .setDescription(`[${message.translate("general/github:CLICK_HERE")}](https://github.com/JonnyBro/JaBa-new)`) + .setDescription(`[${message.translate("general/github:CLICK_HERE")}](${json.html_url})`) .addField("Stars", json.stargazers_count, true) .addField("Forks", json.forks_count, true) .addField(message.translate("general/github:LANGUAGE"), json.language, true) diff --git a/languages/en-US/general/github.json b/languages/en-US/general/github.json index 3ecb24ac..5fe4edb6 100644 --- a/languages/en-US/general/github.json +++ b/languages/en-US/general/github.json @@ -1,5 +1,5 @@ { - "DESCRIPTION": "Shows JaBa's Github repository information!", + "DESCRIPTION": "Shows JaBa's v2 Github repository information!", "USAGE": "{{prefix}}github", "EXAMPLES": "{{prefix}}github", "CLICK_HERE": "Click here to access the github of JaBa", diff --git a/languages/ru-RU/general/github.json b/languages/ru-RU/general/github.json index 95b92418..22339375 100644 --- a/languages/ru-RU/general/github.json +++ b/languages/ru-RU/general/github.json @@ -1,5 +1,5 @@ { - "DESCRIPTION": "Показать информацию о GitHub репозитории JaBa!", + "DESCRIPTION": "Показать информацию о GitHub репозитории старой версии JaBa!", "USAGE": "{{prefix}}github", "EXAMPLES": "{{prefix}}github", "CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку",