1
0
Fork 0
out-of-your-element-fork-th.../m2d/appservice.js

8 lines
229 B
JavaScript

const reg = require("../matrix/read-registration")
const AppService = require("matrix-appservice").AppService
const as = new AppService({
homeserverToken: reg.hs_token
})
as.listen(+(new URL(reg.url).port))
module.exports = as