connected, show the code
                        document.getElementById('pairing-container').classList.remove('hidden');
                        document.getElementById('pairing-code').textContent = data.pairingCode;
                    }
                })
                .catch(error => {
                    console.error('Error checking status:', error);
                });
        }
        
        // Fetch Ai statistics
        function fetchAiStats() {
            fetch('/bot-stats')
               