bot mode: ClientsInRoomMap and RoomStateManager are given events.

This commit is contained in:
gnuxie committed 2024-04-06 20:03:34 +01:00
1 parent eecb074ac8
commit 468f1846b0
2 files changed
+5

No files matched your search

+4
View File
@@ -96,5 +96,9 @@ export async function makeDraupnirBotModeFromConfig(
if (isError(draupnir)) {
throw draupnir.error;
}
matrixEmitter.on('room.event', (roomID, event) => {
roomStateManagerFactory.handleTimelineEvent(roomID, event);
clientsInRoomMap.handleTimelineEvent(roomID, event);
})
return draupnir.ok;
}
+1
View File
@@ -96,6 +96,7 @@ import { DefaultEventDecoder } from "matrix-protection-suite";
}
try {
await bot.start();
await config.RUNTIME.client.start();
healthz.isHealthy = true;
} catch (err) {
console.error(`Mjolnir failed to start: ${err}`);