out-of-your-element/m2d/event-dispatcher.js

8 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)
})