forked from cadence/out-of-your-element
Sadly, the presence API is worse than I hoped
This commit is contained in:
parent
15826dcb3f
commit
381861ee8e
7 changed files with 69 additions and 19 deletions
3
start.js
3
start.js
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
// @ts-check
|
||||
|
||||
const fs = require("fs")
|
||||
const sqlite = require("better-sqlite3")
|
||||
const migrate = require("./src/db/migrate")
|
||||
const HeatSync = require("heatsync")
|
||||
|
@ -9,7 +10,7 @@ const {reg} = require("./src/matrix/read-registration")
|
|||
const passthrough = require("./src/passthrough")
|
||||
const db = new sqlite("ooye.db")
|
||||
|
||||
const sync = new HeatSync()
|
||||
const sync = new HeatSync({watchFunction: fs.watchFile})
|
||||
|
||||
Object.assign(passthrough, {sync, db})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue