mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
Switch to new application service library
This commit is contained in:
parent
87cad6c613
commit
7e9005216d
6 changed files with 160 additions and 684 deletions
|
@ -1,8 +1,8 @@
|
|||
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))
|
||||
// @ts-check
|
||||
|
||||
module.exports = as
|
||||
const reg = require("../matrix/read-registration")
|
||||
const {AppService} = require("@cloudrac3r/in-your-element")
|
||||
const as = new AppService(reg)
|
||||
as.listen()
|
||||
|
||||
module.exports.as = as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue