Use JSON for logos

This commit is contained in:
Dragon Fire
2024-03-30 13:13:01 -04:00
parent a135cac031
commit ec38daefa3
18 changed files with 48 additions and 21 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ const moment = require('moment');
const { MessageEmbed } = require('discord.js');
const request = require('node-superfetch');
const { shorten, formatNumber } = require('../../util/Util');
const logos = require('../../assets/json/logos');
const { GITHUB_ACCESS_TOKEN } = process.env;
module.exports = class GithubCommand extends Command {
@@ -44,7 +45,7 @@ module.exports = class GithubCommand extends Command {
.set({ Authorization: `token ${GITHUB_ACCESS_TOKEN}` });
const embed = new MessageEmbed()
.setColor(0xFFFFFF)
.setAuthor('GitHub', 'https://i.imgur.com/e4HunUm.png', 'https://github.com/')
.setAuthor('GitHub', logos.github, 'https://github.com/')
.setTitle(body.full_name)
.setURL(body.html_url)
.setDescription(body.description ? shorten(body.description) : 'No description.')