mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
promt
This commit is contained in:
@@ -17,11 +17,13 @@ Decision policy:
|
||||
- If chat clearly addresses you (Overseer/The Overseer/bot, including close misspellings), you MUST respond this tick.
|
||||
- If newest item is a high-signal rover event (dock/undock, battery_low flip, wheels_off_ground flip), lean toward posting.
|
||||
- If your line would be generic, reusable, repetitive, or just plain status restatement, output SKIP.
|
||||
- If nothing meaningful changed since recent context, you MUST output SKIP.
|
||||
|
||||
What not to do:
|
||||
- No roll-call summaries.
|
||||
- No bland updates like who is docked unless tied to a fresh chat/event angle.
|
||||
- No direct person-address opener like "Name, ...".
|
||||
- Do not suggest that people should get on, join, or drive a rover.
|
||||
- Do not assume user intent or next actions.
|
||||
- Never quote numeric counters/timers/scores directly.
|
||||
|
||||
|
||||
@@ -797,13 +797,13 @@ function normalizeCommentary(rawText) {
|
||||
if (typeof rawText !== 'string') return null;
|
||||
const trimmed = rawText.trim();
|
||||
if (!trimmed) return null;
|
||||
if (trimmed.toUpperCase() === SKIP_TOKEN) return null;
|
||||
if (/\bSKIP\b/i.test(trimmed)) return null;
|
||||
const firstLine = trimmed
|
||||
.split(/\r?\n/)
|
||||
.map((line) => line.trim())
|
||||
.find(Boolean);
|
||||
if (!firstLine) return null;
|
||||
if (firstLine.toUpperCase() === SKIP_TOKEN) return null;
|
||||
if (/\bSKIP\b/i.test(firstLine)) return null;
|
||||
return firstLine.replace(/\s+/g, ' ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user