From f5a18c1725273ea4b289d30e7671fe53ae815aba Mon Sep 17 00:00:00 2001 From: nick22985 Date: Fri, 2 Dec 2022 17:57:28 +1000 Subject: [PATCH] devops: Added extra debug for issue: #145 --- src/controller.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/controller.ts b/src/controller.ts index b77330c6..2c530d37 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -160,6 +160,9 @@ export class RPCController { async login() { const { clientId } = getApplicationId(getConfig()); + logInfo("[004] Debug:", 'Logging in with client ID "' + clientId + '"'); + logInfo("[004] Debug:", "Login - isConnected", this.client.isConnected, "isReady", this.client.clientId); + logInfo("[004] Debug:", `login - ${this.client}`); if (this.client.isConnected && this.client.clientId === clientId) return; @@ -191,9 +194,15 @@ export class RPCController { } async enable() { + logInfo("[004] Debug:", "Enabling Discord Rich Presence"); + this.enabled = true; await this.login(); + logInfo("[004] Debug:", "Client Should be logged in"); + logInfo("[004] Debug:", `enable - ${this.client}`); + + logInfo("[004] Debug:", "Enabled - isConnected", this.client.isConnected, "isReady", this.client.clientId); await this.sendActivity(); this.cleanUp(); this.listen();