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 = {}