mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Just some updates
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const snekfetch = require('snekfetch');
|
||||
const { shorten } = require('../../util/Util');
|
||||
const { GITHUB_LOGIN } = process.env;
|
||||
|
||||
module.exports = class GitHubCommand extends Command {
|
||||
@@ -37,8 +38,8 @@ module.exports = class GitHubCommand extends Command {
|
||||
.setAuthor('GitHub', 'https://i.imgur.com/e4HunUm.png')
|
||||
.setTitle(body.full_name)
|
||||
.setURL(body.html_url)
|
||||
.setDescription(body.description || 'No description.')
|
||||
.setThumbnail(body.owner.avatar_url || null)
|
||||
.setDescription(body.description ? shorten(body.description) : 'No description.')
|
||||
.setThumbnail(body.owner.avatar_url)
|
||||
.addField('❯ Stars',
|
||||
body.stargazers_count, true)
|
||||
.addField('❯ Forks',
|
||||
|
||||
Reference in New Issue
Block a user