Example #1
0
async def amireallyalive(alive):
    if alive.fwd_from:
        return
    reply_to_id = alive.message
    uptime = catdef.get_readable_time((time.time() - StartTime))
    if alive.reply_to_msg_id:
        reply_to_id = await alive.get_reply_message()

    if CAT_IMG:
        cat_caption = f"🚴‍♂️**MY BOT IS RUNNING SUCCESFULLY**\n\n"
        cat_caption += f"**Database Status: Databases Functioning Normally!**\n"
        cat_caption += f"⏳`Telethon Version:` **{version.__version__}**\n"
        cat_caption += f"⏳`Python Version:` **{python_version()}**\n"
        cat_caption += f"⏳`CatUserbot Version:` **{catversion}**\n"
        cat_caption += f"⏳`Cat Uptime:` **{uptime}**\n\n"
        cat_caption += f"**Cat is Always With You, My Masters!**\n"
        cat_caption += f"⏳`Owner Name:` {DEFAULTUSER}\n"
        cat_caption += f"⏳`Modified by:` **Sur_vivor**\n\n"
        cat_caption += f"**[⚜️DEPLOY CATUSERBOT⚜️](https://github.com/Sur-vivor/CatUserbot)**"
        await borg.send_file(alive.chat_id, CAT_IMG, caption=cat_caption)
        await alive.delete()
    else:
        await alive.edit(
            "🚴‍♂️**MY BOT IS RUNNING SUCCESFULLY**\n\n"
            "**Database Status: Databases Functioning Normally!**\n"
            f"⏳`Telethon Version:` **{version.__version__}**\n"
            f"⏳`Python Version:` **{python_version()}**\n"
            f"⏳`Catuserbot Version:` **{catversion}**\n"
            f"⏳`Cat Uptime:` **{uptime}**\n\n"
            "**Cat is Always With You, My Masters!**\n"
            f"⏳`Owner Name:` {DEFAULTUSER}\n"
            "⏳`Modified by:` **Sur_vivor**\n\n"
            f"**[⚜️DEPLOY CATUSERBOT⚜️](https://github.com/Sur-vivor/CatUserbot)**"
        )
Example #2
0
async def amireallyalive(alive):
    if alive.fwd_from:
        return
    reply_to_id = alive.message
    uptime = catdef.get_readable_time((time.time() - StartTime))
    if alive.reply_to_msg_id:
        reply_to_id = await alive.get_reply_message()
    if CAT_IMG:
         cat_caption  = f"**MY BOT IS RUNNING SUCCESFULLY**\n\n"
         cat_caption += f"**Database Status: Databases functioning normally!\n**"   
         cat_caption += f"☞Telethon version : `{version.__version__}\n`"
         cat_caption += f"☞Catuserbot Version : `{catversion}`\n"
         cat_caption += f"☞Python Version : `{python_version()}\n\n`"
         cat_caption += f"**cat🐱 is always with you, my master!\n**"
         cat_caption += f"☞My peru Master: {DEFAULTUSER}\n"
         cat_caption += f"☞uptime : `{uptime}\n`"
         cat_caption +=	f"☞**Click **[here](https://github.com/sandy1709/catuserbot) to deply catuserbot"
         await borg.send_file(alive.chat_id, CAT_IMG, caption=cat_caption, reply_to=reply_to_id)
         await alive.delete()
    else:
        await alive.edit(f"**MY BOT IS RUNNING SUCCESFULLY**\n\n"
                         "**Database Status: Databases functioning normally!\n**" 
                         f"☞Telethon version : `{version.__version__}\n`"
			 f"☞Catuserbot Version : `{catversion}`\n"
                         f"☞Python Version : `{python_version()}\n\n`"
                         "**cat🐱 is always with you, my master!\n**"
                         f"☞My peru Master: {DEFAULTUSER}\n"
                         f"☞uptime : `{uptime}\n`"
                         f"☞**Click **[here](https://github.com/sandy1709/catuserbot) to deply catuserbot"
                        )         
Example #3
0
async def _(event):
    if event.fwd_from:
        return
    start = datetime.now()
    await event.edit("🚀Ping!")
    end = datetime.now()
    ms = (end - start).microseconds / 1000
    uptime = catdef.get_readable_time((time.time() - StartTime))
    await event.edit(f"🚀Pong!\nPing Speed: {ms}\nUserbot Uptime: {uptime}")
Example #4
0
async def _(event):
    if event.fwd_from:
        return
    uptime = catdef.get_readable_time((time.time() - StartTime))
    await event.reply(" SUDO COMMANDS ARE WORKING PERFECTLY \n\n"
                     f"☞Telethon version: {version.__version__}\n"
                     f"☞Python: {python_version()}\n"
                     f"☞My peru owner: {DEFAULTUSER}\n"
                     f"**uptime :** `{uptime}\n`"
                     #"Deploy this userbot Now"
                    )
Example #5
0
async def _(event):
    uptime = catdef.get_readable_time((time.time() - StartTime))
    OUTPUT = f"**[Sᴜʀᴠɪᴠᴏʀ's Cat](tg://need_update_for_some_feature/) CPU UPTIME:**\n{uptime}"
    await event.edit(OUTPUT)