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
7
index.js
7
index.js
|
@ -9,13 +9,18 @@ const db = new sqlite("db/ooye.db")
|
|||
|
||||
const sync = new HeatSync()
|
||||
|
||||
Object.assign(passthrough, { config, sync, db })
|
||||
Object.assign(passthrough, {config, sync, db})
|
||||
|
||||
const DiscordClient = require("./d2m/discord-client")
|
||||
|
||||
const discord = new DiscordClient(config.discordToken)
|
||||
passthrough.discord = discord
|
||||
|
||||
const as = require("./m2d/appservice")
|
||||
passthrough.as = as
|
||||
|
||||
sync.require("./m2d/event-dispatcher")
|
||||
|
||||
;(async () => {
|
||||
await discord.cloud.connect()
|
||||
console.log("Discord gateway started")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue