mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-30 01:06:11 +00:00
perf(runtime): trim hot-path allocations and cache channel plugin lookups
This commit is contained in:
@@ -96,6 +96,15 @@ export function parseInlineDirectives(
|
||||
hasReplyTag: false,
|
||||
};
|
||||
}
|
||||
if (!text.includes("[[")) {
|
||||
return {
|
||||
text: normalizeDirectiveWhitespace(text),
|
||||
audioAsVoice: false,
|
||||
replyToCurrent: false,
|
||||
hasAudioTag: false,
|
||||
hasReplyTag: false,
|
||||
};
|
||||
}
|
||||
|
||||
let cleaned = text;
|
||||
let audioAsVoice = false;
|
||||
|
||||
Reference in New Issue
Block a user