fix: message

This commit is contained in:
Saahil 2024-12-17 21:00:55 -05:00
parent e90d21c7fb
commit 8c0a5a7e95
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -105,10 +105,17 @@ export default class UserJoinEvent implements Command {
text: "Thus, the legend of *#neons-personal* grew, a beacon to all who dared to *dream in neon*. And though Zeon would eventually leave to share the story of this sacred place with the world, he knew he would always return, for the channel—and its creator, *{user}*—was a home to all who sought to light up the darkness.",
},
},
...[inviter ? {
type: "section",
text: {
type: "mrkdwn",
text: `And thank you <@${event.inviter}> for inviting this wonderful soul to this ~shithole~ channel`,
},
}: null ].filter(Boolean),
].map((e) => {
if (e.type === "divider") return e;
//@ts-ignore
e.text.text = e.text.text.replace("{user}", `<#${event.user}>`);
e.text.text = e.text.text.replace("{user}", `<@${event.user}>`);
return e;
}),
},