ooye-nix-patches/m2d/event-dispatcher.js
2023-06-29 08:08:17 +12:00

9 lines
255 B
JavaScript

const assert = require("assert").strict
const {sync, as} = require("../passthrough")
// Grab Matrix events we care about for the bridge, check them, and pass them on
sync.addTemporaryListener(as, "type:m.room.message", event => {
console.log(event)
})