Sadly, the presence API is worse than I hoped

This commit is contained in:
Cadence Ember
2025-02-11 01:37:23 +13:00
parent 15826dcb3f
commit 381861ee8e
7 changed files with 69 additions and 19 deletions

View File

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