MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatWelcomeMessage

Function formatWelcomeMessage

src/utils/logoV2Utils.ts:98–103  ·  view source on GitHub ↗
(username: string | null)

Source from the content-addressed store, hash-verified

96 * Formats the welcome message based on username
97 */
98export function formatWelcomeMessage(username: string | null): string {
99 if (!username || username.length > MAX_USERNAME_LENGTH) {
100 return 'Welcome back!'
101 }
102 return `Welcome back ${username}!`
103}
104
105/**
106 * Truncates a path in the middle if it's too long.

Callers 1

LogoV2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected