From 32ece5f64d2471d391e73d739f70788f0e250849 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 10 Mar 2023 10:57:40 -0700 Subject: [PATCH] Add some debug logs --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 490d767..8942e73 100644 --- a/index.js +++ b/index.js @@ -149,6 +149,7 @@ client.on('messageCreate', async (message) => { output = data.data.choices[0].message; output.name = "Bot"; if (output.content.endsWith("!!!TERM1234!!!")) { // This can allow a self-termination command + console.log(`${colors.cyan("[INFO]")} Self termination command detected in ${colors.green(message.channel.name)} (${colors.green(message.channelId)}): ${colors.green(message.content)}`) output.content = output.content.replace("!!!TERM1234!!!", ""); clearInterval(typing); if (output.content.length != 0) message.channel.send(output.content);