about summary refs log tree commit diff stats
path: root/html/matt-chat
diff options
context:
space:
mode:
Diffstat (limited to 'html/matt-chat')
-rw-r--r--html/matt-chat/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/html/matt-chat/index.html b/html/matt-chat/index.html
index 17dcefe..530d36c 100644
--- a/html/matt-chat/index.html
+++ b/html/matt-chat/index.html
@@ -264,18 +264,21 @@
             if (userMessage.toLowerCase() === '/darkmode') {
                 toggleDarkMode();
                 userInput.value = ""; // Clear input after command
+                updateCounter(); // Reset counters
                 return;
             }
 
             if (userMessage.toLowerCase() === '/clear') {
                 clearChat();
                 userInput.value = ""; // Clear input after command
+                updateCounter(); // Reset counters
                 return;
             }
 
             if (userMessage.toLowerCase() === '/help') {
                 displayHelp();
                 userInput.value = ""; // Clear input after command
+                updateCounter(); // Reset counters
                 return;
             }