Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions fluxer_app/src/utils/SystemMessageUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ const getGuildJoinMessagesPlaintext = (i18n: I18n): Array<(username: string) =>
(username) => i18n._(msg`You made it, ${username}! We're about to hit 88mph!`),
(username) => i18n._(msg`You're here, ${username}! Just in time to rock 'n' roll!`),
(username) => i18n._(msg`You've arrived, ${username}! Enjoy the Jigowatt Joyride!`),
(username) => i18n._(msg`${username} Was Turned To Steel, In The Great Magnetic Field!`),
(username) => i18n._(msg`Get comfy ${username}, enjoy a can of Slurm!`),
(username) => i18n._(msg`${username}, HATE. LET ME TELL YOU HOW MUCH I\'VE COME TO HATE YOU SINCE I BEGAN TO LIVE.`),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually leave something like this out. This could be misunderstood if you don't get the reference.

Copy link
Copy Markdown
Author

@ioletsgo ioletsgo Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did actually speak to Hampus regarding concerns about that. The general speech I personally consider to be iconic, but nerds can kinda overestimate the general public's familiarity with certain quotes and references. XKCD 2501 and all that

im nerds btw

Copy link
Copy Markdown

@gitnickolson gitnickolson Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤝

Mow that that's gone, I really like these additions :D

(username) => il8n._(msg`${username}? ${username}!? SNAAAAAAAAAAAAKEEE!!!!`),
(username) => il8n._(msg`That ${username} is a Spy!`),
(username) => il8n._(msg`${username}, Try to remember some of the basics of CQC.`),
(username) => il8n._(msg`Well, ${username}! And about time, too!`),
];

export const SystemMessageUtils = {
Expand All @@ -62,15 +69,15 @@ export const SystemMessageUtils = {
const messageGenerator = messageList[messageIndex];
return (
<>
{messageGenerator('__USERNAME__')
.split('__USERNAME__')
.map((part, i, arr) => (
<React.Fragment key={i}>
{part}
{i < arr.length - 1 && username}
</React.Fragment>
))}
</>
{messageGenerator('__USERNAME__')
.split('__USERNAME__')
.map((part, i, arr) => (
<React.Fragment key={i}>
{part}
{i < arr.length - 1 && username}
</React.Fragment>
))}
</>
Comment thread
ioletsgo marked this conversation as resolved.
Outdated
);
},

Expand All @@ -91,7 +98,7 @@ export const SystemMessageUtils = {
return i18n._(msg`${username} pinned a message to this channel.`);
case MessageTypes.RECIPIENT_ADD: {
const mentionedUser =
message.mentions && message.mentions.length > 0 ? UserStore.getUser(message.mentions[0].id) : null;
message.mentions && message.mentions.length > 0 ? UserStore.getUser(message.mentions[0].id) : null;
Comment thread
ioletsgo marked this conversation as resolved.
if (mentionedUser) {
return i18n._(msg`${username} added ${mentionedUser.username} to the group.`);
}
Expand Down