change repository to old

This commit is contained in:
JonnyBro 2021-12-26 19:42:33 +05:00
parent 5e39ea8985
commit 7b4732f33a
3 changed files with 4 additions and 9 deletions

View file

@ -19,12 +19,7 @@ class Github extends Command {
} }
async run(message, args, data) { async run(message, args, data) {
const res = await fetch("https://api.github.com/repos/JonnyBro/JaBa-new", { const res = await fetch("https://api.github.com/repos/JonnyBro/jaba-v2");
headers: {
Authorization: data.config.githubToken
}
});
console.log(res)
const json = await res.json(); const json = await res.json();
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
@ -33,7 +28,7 @@ class Github extends Command {
dynamic: true, dynamic: true,
format: "png" 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("Stars", json.stargazers_count, true)
.addField("Forks", json.forks_count, true) .addField("Forks", json.forks_count, true)
.addField(message.translate("general/github:LANGUAGE"), json.language, true) .addField(message.translate("general/github:LANGUAGE"), json.language, true)

View file

@ -1,5 +1,5 @@
{ {
"DESCRIPTION": "Shows JaBa's Github repository information!", "DESCRIPTION": "Shows JaBa's v2 Github repository information!",
"USAGE": "{{prefix}}github", "USAGE": "{{prefix}}github",
"EXAMPLES": "{{prefix}}github", "EXAMPLES": "{{prefix}}github",
"CLICK_HERE": "Click here to access the github of JaBa", "CLICK_HERE": "Click here to access the github of JaBa",

View file

@ -1,5 +1,5 @@
{ {
"DESCRIPTION": "Показать информацию о GitHub репозитории JaBa!", "DESCRIPTION": "Показать информацию о GitHub репозитории старой версии JaBa!",
"USAGE": "{{prefix}}github", "USAGE": "{{prefix}}github",
"EXAMPLES": "{{prefix}}github", "EXAMPLES": "{{prefix}}github",
"CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку", "CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку",