From bedae93ae58c31a496d26e3db522368d6ae1f02b Mon Sep 17 00:00:00 2001 From: raven Date: Sun, 15 Jan 2023 21:15:40 -0500 Subject: [PATCH] fixing command dir so it can be ran anywhere --- sshChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshChat.js b/sshChat.js index 176c861..835d441 100644 --- a/sshChat.js +++ b/sshChat.js @@ -139,7 +139,7 @@ const publicKey = crypto.randomBytes(32) // Create the swarm and pass in the public key const swarm = new Hyperswarm() -const commandDir = './commands/'; +const commandDir = __dirname +'/commands/'; const commandFiles = fs.readdirSync(commandDir); const commands = {}