"""
Available Commands
.muth"""

from telethon import events

import asyncio





@borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True))

async def _(event):

    if event.fwd_from:

        return

    animation_interval = 0.3

    animation_ttl = range(0, 100)

    input_str = event.pattern_match.group(1)

    if input_str == "muth":

        await event.edit(input_str)

        animation_chars = [

            "8âœŠï¸�===D",

            "8=âœŠï¸�==D",

            "8==âœŠï¸�=D",

            "8===âœŠï¸�D",

            "8==âœŠï¸�=D",

            "8=âœŠï¸�==D",

            "8âœŠï¸�===D",

            "8===âœŠï¸�DğŸ’¦",

            "8==âœŠï¸�=DğŸ’¦ğŸ’¦",

            "8=âœŠï¸�==DğŸ’¦ğŸ’¦ğŸ’¦"

        ]

        for i in animation_ttl:
        
            await asyncio.sleep(animation_interval)
        
            await event.edit(animation_chars[i % 8])

