Just some updates

This commit is contained in:
Daniel Odendahl Jr
2017-10-20 21:00:08 +00:00
parent bac7e3e6b8
commit 15d5ff0be1
25 changed files with 48 additions and 146 deletions
+3 -2
View File
@@ -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',