This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+7 -7
View File
@@ -34,21 +34,21 @@ module.exports = class GithubCommand extends Command {
.setTitle(body.full_name)
.setDescription(body.description)
.setThumbnail(body.owner.avatar_url)
.addField('Creation Date',
.addField(' Creation Date',
moment(body.created_at).format('MMMM Do YYYY'), true)
.addField('Last Updated On',
.addField(' Last Updated On',
moment(body.updated_at).format('MMMM Do YYYY'), true)
.addField('Stargazers',
.addField(' Stargazers',
body.stargazers_count, true)
.addField('Watchers',
.addField(' Watchers',
body.watchers_count, true)
.addField('Open Issues',
.addField(' Open Issues',
body.open_issues_count, true)
.addField('Language',
.addField(' Language',
body.language, true);
return msg.embed(embed);
} catch (err) {
return msg.say(`${err.name}: ${err.message}`);
return msg.say(err.message);
}
}
};