WIP: Fix deps and nix-module
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user