from django.core.management.base import BaseCommand
from waapi.utils import get_queue_status

class Command(BaseCommand):
    help = 'Show WhatsApp queue status'
    
    def handle(self, *args, **options):
        status = get_queue_status()
        
        self.stdout.write('📊 وضعیت صف پیام‌های واتس آپ:')
        self.stdout.write(f'pending : {status["pending"]}')
        self.stdout.write(f'processing: {status["processing"]}') 
        self.stdout.write(f'sentه: {status["sent"]}')
        self.stdout.write(f'failed: {status["failed"]}')
        self.stdout.write(f'total: {status["total"]}')