WIP: Fix deps and nix-module

This commit is contained in:
2024-08-24 22:43:52 +02:00
parent cec320746b
commit 526fec467c
6 changed files with 1829 additions and 11 deletions

View File

@@ -7,7 +7,9 @@ import {
import axios from "axios";
import config from "./config.json" assert {type: "json"};
import { env } from 'node:process';
const config = await import (env.DOORBELL_CONFIG_FILE || "./config.json"); // assert {type: "json"};
const homeserverUrl = config.homeserver;
const token = config.token;
@@ -130,4 +132,4 @@ async function handleCommand(roomId, event) {
};
client.sendMessage(roomId, event);
}
}