forked from cadence/out-of-your-element
add appservice listener
This commit is contained in:
parent
740ddc36d1
commit
d70199f890
4 changed files with 23 additions and 1 deletions
8
m2d/event-dispatcher.js
Normal file
8
m2d/event-dispatcher.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
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)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue