2023-07-02 13:06:05 +00:00
|
|
|
// @ts-check
|
|
|
|
|
2023-06-28 20:08:17 +00:00
|
|
|
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)
|
2023-07-02 13:06:05 +00:00
|
|
|
// TODO: filter out events that were bridged discord messages (i.e. sent by OOYE)
|
|
|
|
// TODO: call sendMessage
|
2023-06-28 20:08:17 +00:00
|
|
|
})
|