Updated env

This commit is contained in:
2025-03-02 21:09:43 +01:00
parent 8d2fba1c21
commit 0f4d317935
17 changed files with 72 additions and 52 deletions

View File

@@ -34,15 +34,15 @@ export class ExtendedClient extends Client {
let token: string
if (process.env.NODE_ENV === "dev" && process.env.TYPESCRIPT === "true") {
log("Running in development mode. [tsx]", "info", { type: "preset", color: "lavender" })
token = env.dev.devtoken
token = env.dev.DEVTOKEN
autoDeployCommands("ts", this)
} else if (process.env.NODE_ENV === "dev" && !process.env.TYPESCRIPT) {
log("Running in development mode.", "info", { type: "preset", color: "lavender" })
token = env.dev.devtoken
token = env.dev.DEVTOKEN
autoDeployCommands("js", this)
} else {
log("Running in production mode.", "info", { type: "preset", color: "green" })
token = env.prod.token
token = env.prod.TOKEN
}
this.login(token)