fix fetch

This commit is contained in:
JonnyBro 2021-12-26 19:37:21 +05:00
parent 52443e71f6
commit ccfb861489

View file

@ -20,7 +20,9 @@ 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}`
headers: {
Authorization: data.config.githubToken
}
});
const json = await res.json();