Debug only for /text

This commit is contained in:
Amateur Audio Dude
2024-11-05 23:38:29 +11:00
committed by GitHub
parent 9a0cd53d8f
commit b366464ee6
+1 -1
View File
@@ -353,7 +353,7 @@ app.use('/', endpoints);
function antispamProtection(message, clientIp, ws, userCommands, lastWarn, userCommandHistory, lengthCommands, endpointName) {
const command = message.toString();
const now = Date.now();
logDebug(`Command received from \x1b[90m${clientIp}\x1b[0m: ${command}`);
if (endpointName === 'text') logDebug(`Command received from \x1b[90m${clientIp}\x1b[0m: ${command}`);
// Initialize user command history if not present
if (!userCommandHistory[clientIp]) {