Exemple #1
0
async def unload(lightning):

    if lightning.fwd_from:

        return

    krish_blac = lightning.pattern_match["krish_blac"]

    try:

        remove_plugin(krish_blac)

        await lightning.edit(f"Successfully unloaded {krish_blac}")

    except Exception as e:

        await lightning.edit(

            "Successfully unloaded {krish_blac}\n{}".format(krish_blac, str(e))

        )
async def unload(event):

    if event.fwd_from:

        return

    shortname = event.pattern_match["shortname"]

    try:

        remove_plugin(shortname)

        qwe = await eor(event, f"DRAGON BOT Has Successfully unloaded {shortname}")

    except Exception as e:

        await qwe.edit(

            "DRAGON BOT has Successfully unloaded {shortname}\n{}".format(shortname, str(e))

        )
Exemple #3
0
    async def on_plug_in_callback_query_handler(event):
        if event.query.user_id == bot.uid:

            try:
                fcix = [
                    custom.Button.inline(" 𝕭𝖆𝖈𝖐 ",
                                         data="back({})".format(shivam)),
                    custom.Button.inline(" 𝕮𝖑𝖔𝖘𝖊 ", data="close"),
                    custom.Button.inline(
                        " 𝕷𝖔𝖆𝖉 ", data="load({})".format(shivam_sh1vam)),
                ]
                remove_plugin(
                    event.data_match.group(1).decode("UTF-8")
                )  # kyu sir kang krne m muskil ho rhi h kya bologe toh help krdu 😂😂
                await event.edit(
                    "`Your DarkCobra Has Successfully unloaded` >>>" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix,
                )
            except Exception as e:
                await event.edit(
                    "Error{}".format(shortname, str(e)) +
                    "DarkCobra Has Successfully unloaded" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix,
                )
        else:
            event.data_match.group(1).decode("UTF-8")
            fcix = [
                custom.Button.inline("  𝕭𝖆𝖈𝖐 ",
                                     data="back({})".format(shivam)),
                custom.Button.inline(" 𝕮𝖑𝖔𝖘𝖊 ", data="close"),
                custom.Button.inline(" 𝕷𝖔𝖆𝖉 ",
                                     data="load({})".format(shivam_sh1vam)),
            ]
            reply_pop_up_alert = (
                "Please get your own Userbot,for more info visit @DARK_COBRA_SUPPORT!"
            )
            await event.answer(reply_pop_up_alert, cache_time=0,
                               alert=True)  # hehehe
Exemple #4
0
    async def on_plug_in_callback_query_handler(event):
        me = await client.get_me()
        if event.query.user_id == me.id:

            try:
                fcix = [
                    custom.Button.inline(" 𝕭𝖆𝖈𝖐 ",
                                         data="backr({})".format(shivam)),
                    custom.Button.inline(" 𝕮𝖑𝖔𝖘𝖊 ", data="closer"),
                    custom.Button.inline(" 𝕷𝖔𝖆𝖉 ",
                                         data="load({})".format(shivam_sh1vam))
                ]
                remove_plugin(
                    event.data_match.group(1).decode("UTF-8")
                )  #kyu sir kang krne m muskil ho rhi h kya bologe toh help krdu 😂😂
                await event.edit(
                    "`Successfully unloaded` >>>" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix)
            except Exception as e:
                await event.edit(
                    "Error{}".format(shortname, str(e)) +
                    "Successfully unloaded" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix)
        else:
            shortname = event.data_match.group(1).decode("UTF-8")
            fcix = [
                custom.Button.inline("  𝕭𝖆𝖈𝖐 ",
                                     data="backr({})".format(shivam)),
                custom.Button.inline(" 𝕮𝖑𝖔𝖘𝖊 ", data="closer"),
                custom.Button.inline(" 𝕷𝖔𝖆𝖉 ",
                                     data="load({})".format(shivam_sh1vam))
            ]
            reply_pop_up_alert = "Please get your own Userbot"
            await event.answer(reply_pop_up_alert)  #hehehe
Exemple #5
0
    async def on_plug_in_callback_query_handler(event):
        if event.query.user_id == bot.uid:

            try:
                fcix = [
                    custom.Button.inline(" ◀️ 𝐁𝐀𝐂𝐊 ",
                                         data="back({})".format(shivam)),
                    custom.Button.inline(" 𝐂𝐋𝐎𝐒𝐄 ", data="close"),
                    custom.Button.inline(" 𝐋𝐎𝐀𝐃 ",
                                         data="load({})".format(shivam_sh1vam))
                ]
                remove_plugin(
                    event.data_match.group(1).decode("UTF-8")
                )  #kyu sir kang krne m muskil ho rhi h kya bologe toh help krdu 😂
                await event.edit(
                    "`Your 𝐃𝟑𝐕𝐈𝐋 𝐔𝐒𝐄𝐑𝐁𝐎𝐓 Has Successfully unloaded` >>>" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix)
            except Exception as e:
                await event.edit(
                    "Error{}".format(shortname, str(e)) +
                    "LEGENDBOT Has Successfully unloaded" +
                    str(event.data_match.group(1).decode("UTF-8")),
                    buttons=fcix)
        else:
            shortname = event.data_match.group(1).decode("UTF-8")
            fcix = [
                custom.Button.inline("  ◀️ 𝐁𝐀𝐂𝐊 ",
                                     data="back({})".format(shivam)),
                custom.Button.inline(" 𝐂𝐋𝐎𝐒𝐄 ", data="close"),
                custom.Button.inline(" 𝐋𝐎𝐀𝐃 ",
                                     data="load({})".format(shivam_sh1vam))
            ]
            reply_pop_up_alert = "Please get your own Userbot,for more info CONTACT @sameer_795!"
            await event.answer(reply_pop_up_alert, cache_time=0,
                               alert=True)  #hehehe