From f0e7733b0e6e7ca9c98dabc8d46c1b3fbae3a327 Mon Sep 17 00:00:00 2001 From: Alee Date: Fri, 20 Apr 2018 22:18:27 -0400 Subject: FINALLY I GOT LAST COMMIT WORKING --- commands/git.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'commands/git.js') diff --git a/commands/git.js b/commands/git.js index 7d0c454..48cf070 100644 --- a/commands/git.js +++ b/commands/git.js @@ -19,12 +19,17 @@ * *************************************/ module.exports.run = async (client, message) => { const Discord = require('discord.js'); + const git = require('git-last-commit'); + git.getLastCommit(function(err, commit) { const embed = new Discord.RichEmbed() .setTitle('GitHub Information') .addField('**Repository:**', 'https://github.com/AleeCorp/AleeBot') - .addField('**Last Commit:**', '*Working Progress*') + .addField('**Last Commit:**', commit.subject) .setColor('#1fd619') message.channel.send({ embed }); + console.log(commit) + console.log(err) + }) }; exports.conf = { -- cgit v1.2.3