Added new init function

This commit is contained in:
2023-12-29 00:09:22 +01:00
parent e228b47954
commit b8d138bb0c
7 changed files with 38 additions and 43 deletions

View File

@@ -40,11 +40,11 @@ export class ExtendedClient extends Client {
let token: string
if (process.env.NODE_ENV === "dev") {
console.log("Running in development mode.")
token = config.dev.devtoken
token = config.dev.devtoken!
autoDeployCommands()
} else {
console.log("Running in production mode.")
token = config.prod.token
token = config.prod.token!
}
this.login(token)