diff options
| author | Alee <alee14498@gmail.com> | 2018-04-20 22:18:27 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-20 22:18:27 -0400 |
| commit | f0e7733b0e6e7ca9c98dabc8d46c1b3fbae3a327 (patch) | |
| tree | 9f8f03a571b7533d0a38d0de7be9104e84c83f26 /commands/git.js | |
| parent | 1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980 (diff) | |
| download | AleeBot-f0e7733b0e6e7ca9c98dabc8d46c1b3fbae3a327.tar.gz AleeBot-f0e7733b0e6e7ca9c98dabc8d46c1b3fbae3a327.tar.bz2 AleeBot-f0e7733b0e6e7ca9c98dabc8d46c1b3fbae3a327.zip | |
FINALLY I GOT LAST COMMIT WORKING
Diffstat (limited to 'commands/git.js')
| -rw-r--r-- | commands/git.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 = {
|
