style: fix prettier formatting in registerGroup template copy

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
NanoClaw User
2026-03-25 13:37:01 +00:00
parent 5395b732a5
commit 80f6fb2b9a

View File

@@ -143,10 +143,7 @@ function registerGroup(jid: string, group: RegisteredGroup): void {
let content = fs.readFileSync(templateFile, 'utf-8');
if (ASSISTANT_NAME !== 'Andy') {
content = content.replace(/^# Andy$/m, `# ${ASSISTANT_NAME}`);
content = content.replace(
/You are Andy/g,
`You are ${ASSISTANT_NAME}`,
);
content = content.replace(/You are Andy/g, `You are ${ASSISTANT_NAME}`);
}
fs.writeFileSync(groupMdFile, content);
logger.info({ folder: group.folder }, 'Created CLAUDE.md from template');