Get config from config path.

This commit is contained in:
Stephen Vanderwarker 2025-01-29 19:51:40 -05:00
parent 66265bc9b4
commit f4dbaecfd2

@ -39,7 +39,7 @@ function getConfigPath() {
const configPath = getConfigPath();
if (fs.existsSync(configPath)) {
console.log(`Found config at ${configPath}`);
const config = ini.parse(fs.readFileSync('./config.ini', 'utf-8'));
const config = ini.parse(fs.readFileSync(configPath, 'utf-8'));
// get users nostr private hex
let sk = config.nostr.pkhex;
// calculate pubkey from private