Merge 23f53f9a3a into 4583f88626
This commit is contained in:
commit
310aa95480
@ -18,9 +18,12 @@ export function resolveAckReaction(cfg: MoltbotConfig, agentId: string): string
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function resolveIdentityNamePrefix(cfg: MoltbotConfig, agentId: string): string | undefined {
|
export function resolveIdentityNamePrefix(cfg: MoltbotConfig, agentId: string): string | undefined {
|
||||||
const name = resolveAgentIdentity(cfg, agentId)?.name?.trim();
|
const identity = resolveAgentIdentity(cfg, agentId);
|
||||||
if (!name) return undefined;
|
const name = identity?.name?.trim();
|
||||||
return `[${name}]`;
|
const emoji = identity?.emoji?.trim();
|
||||||
|
if (!name && !emoji) return undefined;
|
||||||
|
const parts = [emoji, name].filter(Boolean);
|
||||||
|
return `[${parts.join(" ")}]`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns just the identity name (without brackets) for template context. */
|
/** Returns just the identity name (without brackets) for template context. */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user