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