the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
92 stars 14 forks source link

AppService intent management #13

Open Gnuxie opened 1 year ago

Gnuxie commented 1 year ago

Originally https://github.com/matrix-org/mjolnir/issues/412

There should be some way to emulate a syncing matrix-bot-sdk client with a matrix-appservice-bridge MatrixIntent. This should preferably be implemented as something that can be contributed to matrix-appservice-bridge or as another package.

Gnuxie commented 11 months ago

This now seems to be a blocker for integrating matrix-protection-suite. The protection suite has models for room state, members and policies that need to be updated and obviously shared between draupnir instances within the appservice modes. As all protections get informed via a handleTimelineEvent method, we are going to phase out use of the MatrixEmitter instead even the draupnir bot mode will use the intent manager and have a wrapper over MatrixEmitter that hooks up all the handlers to the write emitters.