Updated autodeploy module

This commit is contained in:
2024-01-26 09:39:45 +01:00
parent f5070e9658
commit 38581e5e04
2 changed files with 92 additions and 80 deletions

View File

@@ -35,11 +35,11 @@ export class ExtendedClient extends Client {
if (process.env.NODE_ENV === "dev" && process.env.TYPESCRIPT) {
console.log(color("Running in development mode. [ts-node]", "lavender"))
token = env.dev.devtoken!
autoDeployCommands("ts")
autoDeployCommands("ts", this)
} else if (process.env.NODE_ENV === "dev" && !process.env.TYPESCRIPT) {
console.log(color("Running in development mode.", "lavender"))
token = env.dev.devtoken!
autoDeployCommands("js")
autoDeployCommands("js", this)
} else {
console.log(color("Running in production mode.", "green"))
token = env.prod.token!