From 39ce572292524e6ce94a36fd373f537186a3bbe6 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 20 Aug 2023 10:24:41 +1000 Subject: [PATCH] Disable debugging for MPLoop --- src/MPLoop.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MPLoop.ts b/src/MPLoop.ts index 028f95c..ed37f3e 100644 --- a/src/MPLoop.ts +++ b/src/MPLoop.ts @@ -14,7 +14,7 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer const genericEmbed = new client.embed(); // Log bot uptime for the sake of debugging. - (client.channels.resolve('1091300529696673792') as Discord.TextChannel).send(client.formatTime(client.uptime, 2, {longNames: true, commas: true})); + //(client.channels.resolve('1091300529696673792') as Discord.TextChannel).send(client.formatTime(client.uptime, 2, {longNames: true, commas: true})); const decoPlayer = (player:FSPlayer)=>{ let decorator = player.isAdmin ? ':detective:' : ''; diff --git a/src/index.ts b/src/index.ts index 7ce5a50..78aa97a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ process.on('unhandledRejection', (error: Error)=>DZ(error, 'unhandledRejection') process.on('uncaughtException', (error: Error)=>DZ(error, 'uncaughtException')); process.on('error', (error: Error)=>DZ(error, 'nodeError')); client.on('error', (error: Error)=>DZ(error, 'clientError')); -client.on('debug', console.log).on('warn', console.log); +//client.on('debug', console.log).on('warn', console.log); // Audio Player event handling if (client.config.botSwitches.music){