Fix bugs in changelog, friendship

This commit is contained in:
Dragon Fire
2020-04-18 18:09:36 -04:00
parent 77e9a087e8
commit 3085142755
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = class ChangelogCommand extends Command {
.setURL(`https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}/commits/master`)
.setDescription(commits.map(commit => {
const hash = embedURL(`\`${commit.sha.slice(0, 7)}\``, commit.html_url);
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 50)} - ${commit.author.login}`;
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 25)} - ${commit.author.login}`;
}).join('\n'));
return msg.embed(embed);
}