| 576 | 577 | `, |
| 577 | 578 | })); |
| 578 | 579 | eventSource.on(event_types.CHAT_CHANGED, onChatChanged); |
| 580 | + |
| 581 | + MacrosParser.registerMacro('authorsNote', () => chat_metadata[metadata_keys.prompt] ?? '', t`The contents of the Author's Note`); |
| 582 | + MacrosParser.registerMacro('charAuthorsNote', () => this_chid !== undefined ? (extension_settings.note.chara.find((e) => e.name === getCharaFilename())?.prompt ?? '') : '', t`The contents of the Character Author's Note`); |
| 583 | + MacrosParser.registerMacro('defaultAuthorsNote', () => extension_settings.note.default ?? '', t`The contents of the Default Author's Note`); |
| 579 | 584 | } |