fixing command dir so it can be ran anywhere

This commit is contained in:
raven 2023-01-15 21:15:40 -05:00
parent 22928e3f9c
commit bedae93ae5
1 changed files with 1 additions and 1 deletions

View File

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