1
0
Fork 0
out-of-your-element-fork-th.../m2d/event-dispatcher.js
2023-07-03 01:06:05 +12:00

12 lines
379 B
JavaScript

// @ts-check
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)
// TODO: filter out events that were bridged discord messages (i.e. sent by OOYE)
// TODO: call sendMessage
})