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