"""Emoji

Available Commands:

.think"""

from telethon import events

import asyncio

from userbot.utils import admin_cmd

@borg.on(admin_cmd("think"))
async def _(event):
    if event.fwd_from:
        return
    animation_interval = 0.1
    animation_ttl = range(0, 288)
    
    await event.edit(input_str)
    animation_chars = [
            "THINKING",
            "THI&K#Nâ‚¹",
            "T+IN@I?G",
            "Â¿H$NKâˆ†NG",
            "Â¶HÃ—NK&N*",
            "NGITHKIN",
            "T+I#K@â‚¹G",
            "THINKING",
            "THI&K#Nâ‚¹",
            "T+IN@I?G",
            "Â¿H$NKâˆ†NG",
            "Â¶HÃ—NK&N*",
            "NGITHKIN",
            "T+I#K@â‚¹G",
            "THINKING",
            "THI&K#Nâ‚¹",
            "T+IN@I?G",
            "Â¿H$NKâˆ†NG",
            "Â¶HÃ—NK&N*",
            "NGITHKIN",
            "T+I#K@â‚¹G",
            "THINKING",
            "THI&K#Nâ‚¹",
            "T+IN@I?G",
            "Â¿H$NKâˆ†NG",
            "Â¶HÃ—NK&N*",
            "NGITHKIN",
            "T+I#K@â‚¹G",
            "THINKING",
            "THI&K#Nâ‚¹",
            "T+IN@I?G",
            "Â¿H$NKâˆ†NG",
            "Â¶HÃ—NK&N*",
            "NGITHKIN",
            "T+I#K@â‚¹G",
            "THINKING... ðŸ¤”"
        ]

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