forked from snxraven/sshChat-CLI
fixing command dir so it can be ran anywhere
This commit is contained in:
parent
22928e3f9c
commit
bedae93ae5
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user