Get config from config path.
This commit is contained in:
parent
66265bc9b4
commit
f4dbaecfd2
2
index.js
2
index.js
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user