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