Barebones matrix media proxy
This commit is contained in:
parent
eaa3b87670
commit
b45d0f3038
9 changed files with 169 additions and 44 deletions
5
start.js
5
start.js
|
@ -15,7 +15,7 @@ Object.assign(passthrough, {config, sync, db})
|
|||
|
||||
const DiscordClient = require("./src/d2m/discord-client")
|
||||
|
||||
const discord = new DiscordClient(config.discordToken, "full")
|
||||
const discord = new DiscordClient(config.discordToken, "no")
|
||||
passthrough.discord = discord
|
||||
|
||||
const {as} = require("./src/matrix/appservice")
|
||||
|
@ -26,12 +26,13 @@ passthrough.from = orm.from
|
|||
passthrough.select = orm.select
|
||||
|
||||
const power = require("./src/matrix/power.js")
|
||||
sync.require("./src/m2d/event-dispatcher")
|
||||
// sync.require("./src/m2d/event-dispatcher")
|
||||
|
||||
;(async () => {
|
||||
await migrate.migrate(db)
|
||||
await discord.cloud.connect()
|
||||
console.log("Discord gateway started")
|
||||
sync.require("./src/web/server")
|
||||
await power.applyPower()
|
||||
|
||||
require("./src/stdin")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue