diff options
| author | Fuwn <[email protected]> | 2025-10-10 11:32:00 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-10 11:32:00 -0700 |
| commit | 2e3fb5a32be8ea180a9f87a42ca61eaa137158f7 (patch) | |
| tree | d551d7719e9fceeebeab2b66f19a4eaed7daf634 /packages/gateway | |
| parent | feat(gateway): Use new channel and embeds for occasional listener actions (diff) | |
| download | umabotdiscord-2e3fb5a32be8ea180a9f87a42ca61eaa137158f7.tar.xz umabotdiscord-2e3fb5a32be8ea180a9f87a42ca61eaa137158f7.zip | |
feat(gateway:prm): Mix up parts of message
Diffstat (limited to 'packages/gateway')
| -rw-r--r-- | packages/gateway/src/listeners/messageCreate/personaRandomMessage.ts | 66 |
1 files changed, 49 insertions, 17 deletions
diff --git a/packages/gateway/src/listeners/messageCreate/personaRandomMessage.ts b/packages/gateway/src/listeners/messageCreate/personaRandomMessage.ts index 13b000b..a17c647 100644 --- a/packages/gateway/src/listeners/messageCreate/personaRandomMessage.ts +++ b/packages/gateway/src/listeners/messageCreate/personaRandomMessage.ts @@ -5,17 +5,41 @@ import { sendPersonaLog } from "../../commands/utilities"; const ENABLED_PRIMER_MESSAGE = false; const TARGET_CHANNEL_ID = "1410333697701314791"; const MESSAGE_THRESHOLD = 250; -const PERSONA_MESSAGES = [ - "Hi, everyone! {username} here! I want to make sure everyone knows that this channel is for NSFW content **only**! I really don't want to have to get rid of this channel for good ....", - "Hey there! It's {username}! Just a friendly reminder: this channel is strictly for NSFW content. Please keep it that way, or I might have to remove this channel permanently ....", - "Hello everyone! {username} speaking! This channel is meant for NSFW content exclusively. I'd hate to see this channel disappear because of rule violations ....", - "Hi all! {username} here with an important reminder! This channel is for NSFW content **only**! Let's keep it that way, or I'll have no choice but to remove this channel ....", - "Hey! {username} checking in! Just wanted to remind everyone that this channel is strictly for NSFW content. I really don't want to have to delete this channel ....", - "Hello! It's {username}! Please remember that this channel is for NSFW content only. I'd prefer not to have to permanently get rid of this channel ....", - "Hi everyone! {username} here! This channel is exclusively for NSFW content. Keep it clean, or I might have to remove this channel for good ....", - "Hey there! {username} speaking! Just a quick reminder that this channel is for NSFW content **only**! I don't want to have to delete this channel ....", - "Hello all! {username} here! This channel is strictly for NSFW content only. Please respect that, or I'll have no choice but to remove this channel ....", - "Hi! {username} checking in! Remember, this channel is for NSFW content exclusively. I really don't want to have to get rid of this channel permanently ....", +const PERSONA_OPENINGS = [ + "Hi, everyone! {username} here!", + "Hey there! It's {username}!", + "Hello everyone! {username} speaking!", + "Hi all! {username} here with an important reminder!", + "Hey! {username} checking in!", + "Hello! It's {username}!", + "Hi everyone! {username} here!", + "Hey there! {username} speaking!", + "Hello all! {username} here!", + "Hi! {username} checking in!", +]; +const PERSONA_MIDDLES = [ + "I want to make sure everyone knows that this channel is for NSFW content **only**! I really don't want to have to get rid of this channel for good", + "Just a friendly reminder: this channel is strictly for NSFW content. Please keep it that way, or I might have to remove this channel permanently", + "This channel is meant for NSFW content exclusively. I'd hate to see this channel disappear because of rule violations", + "This channel is for NSFW content **only**! Let's keep it that way, or I'll have no choice but to remove this channel", + "Just wanted to remind everyone that this channel is strictly for NSFW content. I really don't want to have to delete this channel", + "Please remember that this channel is for NSFW content only. I'd prefer not to have to permanently get rid of this channel", + "This channel is exclusively for NSFW content. Keep it clean, or I might have to remove this channel for good", + "Just a quick reminder that this channel is for NSFW content **only**! I don't want to have to delete this channel", + "This channel is strictly for NSFW content only. Please respect that, or I'll have no choice but to remove this channel", + "Remember, this channel is for NSFW content exclusively. I really don't want to have to get rid of this channel permanently", +]; +const PERSONA_ENDINGS = [ + "I know you're all doing your best! 💕", + "You've got this! ✨", + "Keep being amazing! 🌟", + "I believe in you! 💪", + "You're all wonderful! 🌸", + "Stay awesome! 💖", + "You're doing great! 🎀", + "Keep shining! ⭐", + "You're all stars! 🌠", + "Keep being fantastic! 🎉", ]; interface PersonaMessageTracker { @@ -70,9 +94,13 @@ class PersonaRandomMessageSystem { try { const randomPersona = UMA_PERSONAS[Math.floor(Math.random() * UMA_PERSONAS.length)]; - const randomMessage = - PERSONA_MESSAGES[Math.floor(Math.random() * PERSONA_MESSAGES.length)]; - const formattedMessage = randomMessage.replace( + const randomOpening = + PERSONA_OPENINGS[Math.floor(Math.random() * PERSONA_OPENINGS.length)]; + const randomMiddle = + PERSONA_MIDDLES[Math.floor(Math.random() * PERSONA_MIDDLES.length)]; + const randomEnding = + PERSONA_ENDINGS[Math.floor(Math.random() * PERSONA_ENDINGS.length)]; + const formattedMessage = `${randomOpening} ${randomMiddle} .... ${randomEnding}`.replace( "{username}", randomPersona.name, ); @@ -117,9 +145,13 @@ class PersonaRandomMessageSystem { try { const randomPersona = UMA_PERSONAS[Math.floor(Math.random() * UMA_PERSONAS.length)]; - const randomMessage = - PERSONA_MESSAGES[Math.floor(Math.random() * PERSONA_MESSAGES.length)]; - const formattedMessage = randomMessage.replace( + const randomOpening = + PERSONA_OPENINGS[Math.floor(Math.random() * PERSONA_OPENINGS.length)]; + const randomMiddle = + PERSONA_MIDDLES[Math.floor(Math.random() * PERSONA_MIDDLES.length)]; + const randomEnding = + PERSONA_ENDINGS[Math.floor(Math.random() * PERSONA_ENDINGS.length)]; + const formattedMessage = `${randomOpening} ${randomMiddle} .... ${randomEnding}`.replace( "{username}", randomPersona.name, ); |