Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async run(message) {
const settings = message.settings
const packageJSON = await require('../../package.json')
var git = require('git-last-commit')
git.getLastCommit(function (err, commit) {
return (
new RichEmbed()
.setAuthor(`Changelog v${packageJSON.version}`)
.setDescription(commit.subject)
.setURL(packageJSON.repository.url.split('+')[1].slice(0, -4))
.setColor(settings.embedColor)
.setTimestamp()
.setFooter(settings.embedFooter, settings.embedIcon)
)
})
}
}