V3 spec (IMPORT ONLY)

This commit is contained in:
Cohee
2024-06-01 22:07:57 +03:00
parent 2e23e78937
commit b559f2f559
5 changed files with 80 additions and 23 deletions

View File

@ -296,6 +296,7 @@ export function evaluateMacros(content, env) {
// Legacy non-macro substitutions
content = content.replace(/<USER>/gi, typeof env.user === 'function' ? env.user() : env.user);
content = content.replace(/<BOT>/gi, typeof env.char === 'function' ? env.char() : env.char);
content = content.replace(/<CHAR>/gi, typeof env.char === 'function' ? env.char() : env.char);
content = content.replace(/<CHARIFNOTGROUP>/gi, typeof env.group === 'function' ? env.group() : env.group);
content = content.replace(/<GROUP>/gi, typeof env.group === 'function' ? env.group() : env.group);