"""Available Commands:

.unoob
.menoob
.upro
.mepro

@arnab431"""

from telethon import events

import asyncio

from userbot.utils import admin_cmd





@borg.on(admin_cmd("unoob"))

async def _(event):

    if event.fwd_from:

        return

    animation_interval = 0.5
    

    animation_ttl = range(0, 9)

    await event.edit("You Noob")

    animation_chars = [
            "EvErYbOdY",
            "iZ",
            "BiGGeSt",
            "NoOoB" ,
            "uNtiL",
            "YoU",
            "aRriVe",
            "ðŸ˜ˆ",
            "EvErYbOdY iZ BiGGeSt NoOoB uNtiL YoU aRriVe ðŸ˜ˆ"
        ]

    for i in animation_ttl:


        await event.edit(animation_chars[i % 9])
        await asyncio.sleep(animation_interval)
            
            
@borg.on(admin_cmd("menoob"))

async def _(event):

    if event.fwd_from:

        return

    animation_interval = 0.5
    

    animation_ttl = range(0, 9)

    await event.edit("Me Noob")

    animation_chars = [
            "EvErYbOdY",
            "iZ",
            "BiGGeSt",
            "NoOoB" ,
            "uNtiL",
            "i",
            "aRriVe",
            "ðŸ˜ˆ",
            "EvErYbOdY iZ BiGGeSt NoOoB uNtiL i aRriVe ðŸ˜ˆ"
        ]

    for i in animation_ttl:


        await event.edit(animation_chars[i % 9])
        await asyncio.sleep(animation_interval) 
            
@borg.on(admin_cmd("upro"))

async def _(event):

    if event.fwd_from:

        return

    animation_interval = 0.5
    

    animation_ttl = range(0, 8)
    
    await event.edit("You Pro")

    animation_chars = [
            "EvErYbOdY",
            "iZ",
            "PeRu" ,
            "uNtiL",
            "YoU",
            "aRriVe",
            "ðŸ˜ˆ",
            "EvErYbOdY iZ PeRu uNtiL YoU aRriVe ðŸ˜ˆ"
        ]

    for i in animation_ttl:


        await event.edit(animation_chars[i % 8])
        await asyncio.sleep(animation_interval)  
            
@borg.on(admin_cmd("mepro"))

async def _(event):

    if event.fwd_from:

        return

    animation_interval = 0.5
    

    animation_ttl = range(0, 8)

    await event.edit("Me Pro")

    animation_chars = [
            "EvErYbOdY",
            "iZ",
            "PeRu" ,
            "uNtiL",
            "i",
            "aRriVe",
            "ðŸ˜ˆ",
            "EvErYbOdY iZ PeRu uNtiL i aRriVe ðŸ˜ˆ"
        ]

    for i in animation_ttl:


        await event.edit(animation_chars[i % 8])
        await asyncio.sleep(animation_interval)                                
