You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(on_message): adjust link replies
- When someone posts a link to x.com, always reply inline with xcancel link
* fix(on_message): adjust link advisor
- Suppress replied message's embeds
* chore: address feedback
`Re: ${message.url}\n\nI see you've provided a link to \`x.com\`. Please consider posting a new message having \`x.com\` replaced with \`xcancel.com\`, that way server members may view the message and thread without requiring an account.\n\n${updated_phrase}\n${updated_link_list}\n\nHere is your entire message with adjusted links:\n${codeBlock(updated_content)}`,
36
-
);
37
-
38
-
return;// mission complete
39
-
}catch{
40
-
// assume user disabled DMs upon error
41
-
}
42
-
43
-
// Plan B: inline reply
22
+
// Reply inline
44
23
try{
45
24
awaitmessage.reply(
46
-
`I converted your \`x.com\` links to use \`xcancel.com\` so that server members won't require an account to view content and threads:\n${updated_link_list}`,
25
+
`I converted your \`x.com\` ${link_term} to use \`xcancel.com\` so that server members won't require an account to view content and threads:\n${updated_link_list}`,
0 commit comments