mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
disable chat_recent
This commit is contained in:
@@ -119,12 +119,13 @@ function formatSnapshotFinalMessage(currentSnapshot = {}, runMeta = {}) {
|
||||
rovers.forEach((rover) => {
|
||||
lines.push(formatRoverSnapshotLine(rover));
|
||||
});
|
||||
if (Array.isArray(currentSnapshot?.chat_recent) && currentSnapshot.chat_recent.length) {
|
||||
lines.push('chat_recent:');
|
||||
currentSnapshot.chat_recent.forEach((entry) => {
|
||||
lines.push(`- ${entry.nickname || 'unknown'}: ${entry.text || ''}`);
|
||||
});
|
||||
}
|
||||
// disable chat_recent to maybe make it less spammy...
|
||||
// if (Array.isArray(currentSnapshot?.chat_recent) && currentSnapshot.chat_recent.length) {
|
||||
// lines.push('chat_recent:');
|
||||
// currentSnapshot.chat_recent.forEach((entry) => {
|
||||
// lines.push(`- ${entry.nickname || 'unknown'}: ${entry.text || ''}`);
|
||||
// });
|
||||
// }
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user