Barebones matrix media proxy

This commit is contained in:
Cadence Ember 2024-09-13 03:16:03 +12:00
parent eaa3b87670
commit b45d0f3038
9 changed files with 169 additions and 44 deletions

View file

@ -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")