mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: message
This commit is contained in:
parent
e90d21c7fb
commit
8c0a5a7e95
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue