Skip to content

Commit

Permalink
Added default for js
Browse files Browse the repository at this point in the history
  • Loading branch information
lntel committed Mar 22, 2021
1 parent 40fb3b7 commit 34fb24a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ class Client extends DiscordClient {
if (process[Symbol.for("ts-node.register.instance")]) {
commandDir = path.resolve(`${this.developmentDirectory}/${directory}`);
} else {
commandDir = path.resolve(`${this.productionDirectory}/${directory}`);
if(!this.productionDirectory) {
commandDir = path.resolve(directory);
} else {
commandDir = path.resolve(`${this.productionDirectory}/${directory}`);
}
}

console.log(commandDir)
Expand Down

0 comments on commit 34fb24a

Please sign in to comment.