feat: change format of /github

Closes https://github.com/xHyroM/bun-discord-bot/issues/19
This commit is contained in:
xHyroM 2022-08-28 15:32:32 +02:00
parent a6affd1b8e
commit 1005636086

View file

@ -128,7 +128,7 @@ new Command({
} }
return ctx.editResponse([ return ctx.editResponse([
`${formatEmojiStatus(issueOrPR)} [#${issueOrPR.number} ${repositoryOwner}/${repositoryName}](<${issueOrPR.html_url}>) by [${issueOrPR.user_login}](<${issueOrPR.user_html_url}>) ${formatStatus(issueOrPR)}`, `${formatEmojiStatus(issueOrPR)} [#${issueOrPR.number} ${issueOrPR.title.replace(/\[\]/g, '').slice(0, 1500)} ${repositoryOwner}/${repositoryName}](<${issueOrPR.html_url}>) by [${issueOrPR.user_login}](<${issueOrPR.user_html_url}>) ${formatStatus(issueOrPR)}`,
issueOrPR.title issueOrPR.title
].join('\n')); ].join('\n'));
} }