Skip to content

Commit ee2ba30

Browse files
authored
Merge pull request #16 from Symphonic3/codex/msgedits-article-links
Format article draft links in confirmation reply
2 parents 61628bf + cc48fc8 commit ee2ba30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

commands/article.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ async function articleCommand(message, args) {
325325
console.error(`Draft forum URL update failed for ${article.id}${detail}`);
326326
}
327327

328-
await message.reply(`Draft created: <https://btcmaxis.com/article.html?id=${article.id}> | <${thread.url}>`);
328+
const articleUrl = `https://btcmaxis.com/article.html?id=${article.id}`;
329+
await message.reply(`[Article Link](<${articleUrl}>) | [Article Comments](<${thread.url}>)`);
329330
}
330331

331332
module.exports = {

0 commit comments

Comments
 (0)