mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 01:21:16 +00:00
bot mode: ClientsInRoomMap and RoomStateManager are given events.
This commit is contained in:
1 parent
eecb074ac8
commit
468f1846b0
2 files changed
+5
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user