mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
change repository to old
This commit is contained in:
parent
5e39ea8985
commit
7b4732f33a
3 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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": "Нажмите сюда, чтобы открыть ссылку",
|
||||||
|
|
Loading…
Reference in a new issue