Example #1
0
            await edit_delete(
                catevent,
                "`Either reply to document or reply to text message or give text along with command`",
            )
    pygments.highlight(
        text_to_print,
        Python3Lexer(),
        ImageFormatter(font_name="DejaVu Sans Mono", line_numbers=True),
        "out.png",
    )
    try:
        await event.client.send_file(event.chat_id,
                                     "out.png",
                                     force_document=False,
                                     reply_to=reply_to)
    except Exception as e:
        await edit_delete(catevent, str(e), parse_mode=parse_pre)
    await catevent.delete()
    os.remove("out.png")
    os.remove(d_file_name)


CMD_HELP.update({
    "neko":
    "\n\n•  **Syntax : **`.neko <text/reply>`\
        \n•  **Function : **__Create a paste or a shortened url using nekobin __`https://nekobin.com`\
        \n\n•  **Syntax : **`.pcode reply/input`\
        \n•  **Function : **__Will paste the entire text on the blank page and will send as image__\
    "
})
Example #2
0
                    user_object = await event.client.get_entity(input_str)
                    user_id = user_object.id
                    replied_user = await event.client(
                        GetFullUserRequest(user_id))
                    return replied_user, None
                except Exception as e:
                    return None, e
        elif event.is_private:
            try:
                user_id = event.chat_id
                replied_user = await event.client(GetFullUserRequest(user_id))
                return replied_user, None
            except Exception as e:
                return None, e
        else:
            try:
                user_object = await event.client.get_entity(int(input_str))
                user_id = user_object.id
                replied_user = await event.client(GetFullUserRequest(user_id))
                return replied_user, None
            except Exception as e:
                return None, e


CMD_HELP.update({
    "information":
    "**Plugin : **`information`\
    \n\n**Syntax : **`.info`\
    \n**Function : **info any user tag any type .info see details of user"
})
Example #3
0
            try:
                await conv.send_message("/mypokemon")
                audio = await conv.get_response()
                await borg.send_message(event.chat_id, Pokes + audio.text)
                await event.delete()
            except YouBlockedUserError:
                await event.edit("Error: unblock **@hexamonbot** and retry!")
    elif "@" in sysarg:
        async with borg.conversation(bot) as conv:
            try:
                await conv.send_message("/mypokemon " + sysarg)
                audio = await conv.get_response()
                await borg.send_message(event.chat_id, Pokes + audio.text)
                await event.delete()
            except YouBlockedUserError:
                await event.edit(
                    "Error: unblock **@hexamonbot** and try again!")
    elif "" in sysarg:
        async with borg.conversation(bot) as conv:
            try:
                await conv.send_message("/mypokemon " + sysarg)
                audio = await conv.get_response()
                await borg.send_message(event.chat_id, Pokes + audio.text)
                await event.delete()
            except YouBlockedUserError:
                await event.edit(
                    "Error: unblock **@hexamonbot** and try again!")


CMD_HELP.update({"hexapokes": "type `.mypokes` to get your all hexa pokes"})
Example #4
0
   reply_message = await event.get_reply_message() 
   if not reply_message.text:
      await event.edit("```reply to text message```")
      return
   chat = "@SangMataInfo_bot"
   sender = reply_message.sender
   if reply_message.sender.bot:
      await event.edit("```Reply to actual users message.```")
      return
   await event.edit("```Processing```")
   async with borg.conversation(chat) as conv:
         try:     
            response = conv.wait_event(events.NewMessage(incoming=True,from_users=461843263))
            await borg.forward_messages(chat, reply_message)
            response = await response 
         except YouBlockedUserError: 
            await event.reply("```Please unblock @sangmatainfo_bot and try again```")
            return
         if response.text.startswith("Forward"):
            await event.edit("```This user had disabled their forward privacy... Just tag and type .sg```")
         else: 
            await event.edit(f"{response.message.message}")
CMD_HELP.update(
    {
        "history": "**Plugin : **`history`\
    \n\n**Syntax : **`.history`\
    \n**Function : **this plugin not show full history of user try .sg"
    }
)


@bot.on(admin_cmd(pattern="meaning (.*)"))
@bot.on(sudo_cmd(pattern="meaning (.*)", allow_sudo=True))
async def _(event):
    if event.fwd_from:
        return
    word = event.pattern_match.group(1)
    dictionary = PyDictionary()
    hell = dictionary.meaning(word)
    output = f"**Word :** __{word}__\n\n"
    try:
        for a, b in hell.items():
            output += f"**{a}**\n"
            for i in b:
                output += f"☞__{i}__\n"
        await edit_or_reply(event, output)
    except Exception:
        await edit_or_reply(event, f"Couldn't fetch meaning of {word}")


CMD_HELP.update({
    "dictionary":
    "**Plugin :** `dictionary`\
    \n\n**Syntax :** `.ud query`\
    \n**Usage : **fetches meaning from Urban dictionary\
    \n\n**Syntax : **`.meaning query`\
    \n**Usage : **Fetches meaning of the given word\
    "
})
                event.message.sender_id
            ),
            reply_to=event.message.id,
        )


@bot.on(admin_cmd(pattern="setflood(?: |$)(.*)"))
@bot.on(sudo_cmd(pattern="setflood(?: |$)(.*)", allow_sudo=True))
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    event = await edit_or_reply(event, "updating flood settings!")
    try:
        sql.set_flood(event.chat_id, input_str) 
        sql.__load_flood_settings()
        await event.edit(
            "Antiflood updated to {} in the current chat".format(input_str)
        )
    except Exception as e:  # pylint:disable=C0103,W0703
        await event.edit(str(e))


CMD_HELP.update(
    {
        "antiflood": ".setflood [number]\
\nUsage: warns the user if he spams the chat and if you are an admin then it mutes him in that group.\
"
    }
)
Example #7
0
            google_rs_response = requests.get(request_url, allow_redirects=False)
            the_location = google_rs_response.headers.get("Location")

        headers = {
            "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
        }
        response = requests.get(the_location, headers=headers)
        soup = BeautifulSoup(response.text, "html.parser")
        # document.getElementsByClassName("r5a77d"): PRS
        prs_div = soup.find_all("div", {"class": "r5a77d"})[0]
        prs_anchor_element = prs_div.find("a")
        prs_url = BASE_URL + prs_anchor_element.get("href")
        prs_text = prs_anchor_element.text
        # document.getElementById("jHnbRc")
        img_size_div = soup.find(id="jHnbRc")
        img_size = img_size_div.find_all("div")
        end = datetime.now()
        ms = (end - start).seconds
        OUTPUT_STR = """/protecc {prs_text}""".format(
            **locals())
    await event.delete()
    await event.reply(OUTPUT_STR, parse_mode="HTML", link_preview=False)

CMD_HELP.update(
    {
        "protecc": "**Plugin : **`protecc`\
    \n\n**Syntax : **`.protec`\
    \n**Function : **this plugin protecc waifu"
    }
)
Example #8
0
                      text=l_text,
                      font=m_font,
                      fill=(0, 0, 0))
            draw.text(xy=((i_width - u_width) / 2, (i_height - u_height - int(
                (20 / 640) * i_width)) - 2),
                      text=l_text,
                      font=m_font,
                      fill=(0, 0, 0))
            draw.text(xy=((i_width - u_width) / 2, (i_height - u_height - int(
                (20 / 640) * i_width)) + 2),
                      text=l_text,
                      font=m_font,
                      fill=(0, 0, 0))

            draw.text(xy=((i_width - u_width) / 2, i_height - u_height - int(
                (20 / 640) * i_width)),
                      text=l_text,
                      font=m_font,
                      fill=(255, 255, 255))
            current_h += u_height + pad
    image_name = "memify.webp"
    webp_file = os.path.join(Var.TEMP_DOWNLOAD_DIRECTORY, image_name)
    img.save(webp_file, "webp")
    return webp_file


CMD_HELP.update(
    {"memify": ".mmf (text)\
\nUsage: print your text on photo or sticker.\
"})
Example #9
0
        )# Originally by @ProgrammingError
# I think its first for DARKCOBRA
        if isinstance(last_seen_status.rules, types.PrivacyValueAllowAll):
            afk_time = datetime.datetime.now()  # pylint:disable=E0602
        USER_AFK = f"yes: {reason} {pic}"  # pylint:disable=E0602
        if reason:
            await borg.send_message(
                event.chat_id, f"**I shall be Going afk!** __because ~ {reason}__", file=pic
            )
        else:
            await borg.send_message(event.chat_id, f"**I am Going afk!**", file=pic)
        await asyncio.sleep(0.001)
        await event.delete()
        try:
            await borg.send_message(  # pylint:disable=E0602
                Config.PRIVATE_GROUP_BOT_API_ID,  # pylint:disable=E0602
                f"#MAFKTRUE \nSet MAFK mode to True, and Reason is {reason}",file=pic
            )
        except Exception as e:  # pylint:disable=C0103,W0703
            logger.warn(str(e))  # pylint:disable=E0602




CMD_HELP.update(
    {
        "mafk": ".mafk (reason) (Reply to any Media)"
        "\nUsage mention u as afk with cool media when someone tag or reply to any of ur msg or dm."
    }
)
Example #10
0
async def handler(rkG):
    client = borg
    if rkG.user_joined or rkG.user_added:
        try:
            from ULTRA.modules.sql_helper.gmute_sql import is_gmuted
            guser = await rkG.get_user()
            gmuted = is_gmuted(guser.id)
        except:
            return
        if gmuted:
            for i in gmuted:
                if i.sender == str(guser.id):
                    chat = await rkG.get_chat()
                    admin = chat.admin_rights
                    creator = chat.creator
                    if admin or creator:
                        try:
                            await client.edit_permissions(rkG.chat_id,
                                                          guser.id,
                                                          view_messages=False)
                            await rkG.reply(
                                f"**Gbanned User Joined!!** \n"
                                f"**➥ Victim Id**: [{guser.id}](tg://user?id={guser.id})\n"
                                f"**➥ Action **  : `Banned`")
                        except:
                            rkG.reply("`No Permission To Ban`")
                            return


CMD_HELP.update({"gban": "gban any user using username or tag dont use id "})
Example #11
0
    sender = reply_message.sender
    if reply_message.sender.bot:
       await event.edit("Reply to actual users message.")
       return
    cat = await event.edit("recognizeing this media")
    async with event.client.conversation(chat) as conv:
          try:     
              response = conv.wait_event(events.NewMessage(incoming=True,from_users=461083923))
              await event.client.forward_messages(chat, reply_message)
              response = await response 
          except YouBlockedUserError: 
              await event.reply("unblock @Rekognition_Bot and try again")
              await cat.delete()
              return
          if response.text.startswith("See next message."):
              response = conv.wait_event(events.NewMessage(incoming=True,from_users=461083923))
              response = await response
              cat = response.message.message
              await event.edit(cat)
      
          else:
              await event.edit("sorry, I couldnt find it")
      
           
CMD_HELP.update({
    "recognize":
    "`.recognize` reply this to any media file\
    \nUSAGE : Get information about an image using AWS Rekognition.\
    \nFind out information including detected labels, faces. text and moderation tags." 
})
Example #12
0
        send_media=media,
        send_stickers=sticker,
        send_gifs=gif,
        send_games=gamee,
        send_inline=ainline,
        send_polls=gpoll,
        invite_users=adduser,
        pin_messages=cpin,
        change_info=changeinfo,
    )
    try:
        await event.client(
            EditChatDefaultBannedRightsRequest(peer=peer_id,
                                               banned_rights=unlock_rights))
        await event.edit(
            f"{DEFAULTUSER} `Unlocked {what} now Start Chit Chat !!`")
    except BaseException as e:
        await event.edit(
            f"`Do I have proper rights for that ??`\n**Error:** {str(e)}")
        return


CMD_HELP.update({
    "locks":
    ".lock <all (or) type(s)> or .unlock <all (or) type(s)>\
\nUsage: Allows you to lock/unlock some common message types in the chat.\
[NOTE: Requires proper admin rights in the chat !!]\
\n\nAvailable message types to lock/unlock are: \
\n`all, msg, media, sticker, gif, game, inline, poll, invite, pin, info`"
})
Example #13
0
    await hell.edit("⬛⬛⬛⬛⬛")
    file = "./carbon.png"
    await hell.edit("✅RGB Karbon Completed, Uploading Karbon✅")
    await e.client.send_file(
        e.chat_id,
        file,
        caption=f"Here's your karbonrgb",
        force_document=True,
        reply_to=e.message.reply_to_msg_id,
    )
    os.remove("./carbon.png")
    await hell.delete()  # Deleting msg


CMD_HELP.update({
    "carbon":
    "**Plugin : **`carbon`\
    \n\n**Commands are :** \
    \n  •  `.carbon <reply to code>`\
    \n  •  `.krb <reply to code>`\
    \n  •  `.kar1 <reply to code>`\
    \n  •  `.kar2 <reply to code>`\
    \n  •  `.kar3 <reply to code>`\
    \n  •  `.kar4 <reply to code>`\
    \n  •  `.rgbk2 <reply to code>`\
    \n  •  `.kargb <reply to code>`\
    \n\n**Function : **\
    \n__Carbon generators, each command has one style of carbon (krb ,kargb shows random carbons, remaining all are fixed)__\
    "
})
Example #14
0
                try:
                    user_object = await event.client.get_entity(input_str)
                    user_id = user_object.id
                    replied_user = await event.client(GetFullUserRequest(user_id))
                    return replied_user, None
                except Exception as e:
                    return None, e
        elif event.is_private:
            try:
                user_id = event.chat_id
                replied_user = await event.client(GetFullUserRequest(user_id))
                return replied_user, None
            except Exception as e:
                return None, e
        else:
            try:
                user_object = await event.client.get_entity(int(input_str))
                user_id = user_object.id
                replied_user = await event.client(GetFullUserRequest(user_id))
                return replied_user, None
            except Exception as e:
                return None, e

CMD_HELP.update({
    "clone":
    ".clone <username/reply>\
\nUsage: steals others profile including dp, name.\
\n\n.revert\
\nUsage: To back to your profile but it'll show ALIVE_NAME instead of your current name and DEFAULT_BIO instead of your current bio\
"})
Example #15
0
        userid = event.pattern_match.group(1)
    elif reply is not None:
        userid = reply.sender_id
    elif private is True:
        userid = event.chat_id
    else:
        return await event.edit(
            "Please reply to a user or add their into the command to ungmute them."
        )
    chat_id = event.chat_id
    if not is_muted(userid, "gmute"):
        return await event.edit("тнιѕ ρєяѕση ιѕ ησт gмυтє∂")
    try:
        unmute(userid, "gmute")
    except Exception as e:
        await event.edit("Error occured!\nError is " + str(e))
    else:
        await event.edit(
            "тнιѕ ρєяѕση gσт υηgмυтє∂ ѕυ¢¢єѕѕƒυℓℓу ησω нє/ѕнє ¢αη ѕρєαк ƒяєєℓу"
        )


@command(incoming=True)
async def watcher(event):
    if is_muted(event.sender_id, "gmute"):
        await event.delete()


CMD_HELP.update(
    {"gmute": "ye plug-in se aap kisi ke bhi muh me deke chup krwa skte h"})
Example #16
0
        return
    legendx22 = await edit_or_reply(event, "`Processing`")
    async with event.client.conversation(chat) as conv:
        try:
            await conv.send_message("/start")
            await conv.get_response()
            await conv.send_message(reply_message)
            await conv.get_response()
            pic = await conv.get_response()
            await event.client.send_read_acknowledge(conv.chat_id)
        except YouBlockedUserError:
            await legendx22.edit("Please unblock @Lines50Bot and try again")
            return
        await legendx22.delete()
        await event.client.send_file(
            event.chat_id,
            pic,
            caption=f"**Image Type :** LINE Art \n**Uploaded By :** {mention}",
        )


CMD_HELP.update(
    {
        "ascii": "__**PLUGIN NAME :** ascii__\
      \n\n** CMD ** `.ascii` reply to any image file:\
      \n**USAGE : **Makes an image ascii style, try out your own.\
      \n\n** CMD ** `.line` reply to any image file:\
      \n**USAGE : **Makes an image line style.\ "
    }
)
Example #17
0
CMD_HELP.update(
    {
        "arts": "__**PLUGIN NAME :** Arts__\
      \n\n** CMD ~>** `.elove` | `.monster` | `.pig` | `.gun` | `.dog` | `.hello` | `.hmf` | `.couple` | `.sup` | `.india` | `.wc` | `.snk` | `.bye` | `.shitos` | `.dislike`\
      \n\n**USAGE   ~>  **These are arts,use & see\
      \n\n** CMD ~>** `.carry` <your text>\
      \n**USAGE   ~>  **Send your text with carry's art.\
      \n\n** CMD ~>** `.killer` <text>\
      \n**USAGE   ~>  **Be a warrior & kill enimes.\
      \n\n** CMD ~>** `.ded` <text>\
      \n**USAGE   ~>  **Hang yourself.\
      \n\n** CMD ~>** `.sthink` <your text>\
      \n**USAGE   ~>  **Send your text which tou thinking about.\
      \n\n** CMD ~>** `.sfrog` <your text>\
      \n**USAGE   ~>  **Send your text with frog's art.\
      \n\n** CMD ~>** `.sdead` <your text>\
      \n**USAGE   ~>  **Send your text with dead forg's art.\
      \n\n** CMD ~>** `.strump` <your text>\
      \n**USAGE   ~>  **Send your text with trump's art.\
      \n\n** CMD ~>** `.china` <your text>\
      \n**USAGE   ~>  **Send your text with china's art.\
      \n\n** CMD ~>** `.sshit` \
      \n**USAGE   ~>  **Ahhh shit...here we go again..\
      \n\n** CMD ~>** `.ooof` \
      \n**USAGE   ~>  **Big oooooooooooooooooooooooooooooooooof..\
      \n\n** CMD ~>** `.f**k` \
      \n**USAGE   ~>  **Wtf kiddo?..\
      \n\n** CMD ~>** `.wdf` \
      \n**USAGE   ~>  **Wha D Fuk??..\
      \n\n** CMD ~>** `.wdyw` \
      \n**USAGE   ~>  **Wha du ya want Kiddo??..\
"
    }
)
Example #18
0
        if os.path.exists(downloaded_file_name):

            dc = await hehe.client.send_file(hehe.chat_id,
                                             downloaded_file_name,
                                             force_document=False,
                                             supports_streaming=True,
                                             allow_cache=False,
                                             reply_to=reply_message,
                                             thumb=thumb)

            os.remove(downloaded_file_name)
            await cobra.delete()
        else:
            await cobra.edit("Something went wrong")
    else:
        await cobra.edit("reply to a non animated sticker")


CMD_HELP.update({
    "fileconverter":
    "PLUGIN NAME : fileconverter\
    \n\n📌 CMD ★ .open\
    \nUSAGE   ★  open files as text (id the amount of words r resonable)\
    \n\n📌 CMD ★ .doc <file name.extension> <reply to any text/media>\
    \nUSAGE   ★  Create a document of anything (example:- .doc dc.mp4, .doc dc.txt, .doc dc.webp)\
    \n\n📌 CMD ★ .stoi\
    \nUSAGE   ★  Convert sticker to image\
    \n\n📌 CMD ★ .itos\
    \nUSAGE   ★  Convert Image to Sticker"
})
Example #19
0
    response += f'🔱 **Unread:** {unread} \n'
    response += f'🔱 **Unread Mentions:** {unread_mentions} \n\n'
    response += f'☣️   __It Took:__ {stop_time:.02f}s \n'
    response += f'📌 **From The DataBase Of** :- [LEGEND BOT](https://github.com/legendx22/LEGEND-BOT)'
    await hell.edit(response)


def make_mention(user):
    if user.username:
        return f"@{user.username}"
    return inline_mention(user)


def inline_mention(user):
    full_name = user_full_name(user) or "No Name"
    return f"[{full_name}](tg://user?id={user.id})"


def user_full_name(user):
    names = [user.first_name, user.last_name]
    names = [i for i in list(names) if i]
    return " ".join(names)


CMD_HELP.update({
    "stat":
    "**Plugin : **`stat`\
    \n\n**Syntax : **`.stat`\
    \n**Function : **Shows you the count of  your groups, channels, private chats...etc"
})
Example #20
0
CMD_HELP.update({
    "memes": ".cowsay\
\nUsage: cow which says things.\
\n\n.milksay\
\nUsage: Weird Milk that can speak\
\n\n:/\
\nUsage: Check yourself ;)\
\n\n-_-\
\nUsage: Ok...\
\n\n;_;\
\nUsage: Like `-_-` but crying.\
\n\n.cp\
\nUsage: Copypasta the famous meme\
\n\n.vapor\
\nUsage: Vaporize everything!\
\n\n.str\
\nUsage: Stretch it.\
\n\n.10iq\
\nUsage: You retard !!\
\n\n.zal\
\nUsage: Invoke the feeling of chaos.\
\n\n.oof\
\nUsage: Ooooof\
\n\n.moon\
\nUsage: kensar moon animation.\
\n\n.clock\
\nUsage: kensar clock animation.\
\n\n.earth\
\nUsage: kensar earth animation.\
\n\n.hi\
\nUsage: Greet everyone!\
\n\n.coinflip <heads/tails>\
\nUsage: Flip a coin !!\
\n\n.owo\
\nUsage: UwU\
\n\n.react\
\nUsage: Make your userbot react to everything.\
\n\n.slap\
\nUsage: reply to slap them with random objects !!\
\n\n.cry\
\nUsage: y u du dis, i cri.\
\n\n.shg\
\nUsage: Shrug at it !!\
\n\n.runs\
\nUsage: Run, run, RUNNN! [`.disable runs`: disable | `.enable runs`: enable]\
\n\n.metoo\
\nUsage: Haha yes\
\n\n.mock\
\nUsage: Do it and find the real fun.\
\n\n.clap\
\nUsage: Praise people!\
\n\n.f <emoji/character>\
\nUsage: Pay Respects.\
\n\n.bt\
\nUsage: Believe me, you will find this useful.\
\n\n.smk <text/reply>\
\nUsage: A shit module for ツ , who cares.\
\n\n.type\
\nUsage: Just a small command to make your keyboard become a typewriter!\
\n\n.lfy <query>\
\nUsage: Let me Google that for you real quick !!\
\n\n.decide\
\nUsage: Make a quick decision.\
\n\n.abusehard\
\nUsage: You already got that! Ain't?.\
\n\n.chu\
\nUsage: Incase, the person infront of you is....\
\n\n.fuk\
\nUsage: The onlu word that can be used f*****g everywhere.\
\n\n.thanos\
\nUsage: Try and then Snap.\
\n\n.noob\
\nUsage: Whadya want to know? Are you a NOOB?\
\n\n.pro\
\nUsage: If you think you're pro, try this.\
\n\n.abuse\
\nUsage: Protects you from unwanted peeps.\
\n\n\nThanks to 🅱️ottom🅱️ext🅱️ot (@NotAMemeBot) for some of these."
})
Example #21
0
     ALIVE_MESSAGE += f"💠 𝙼𝚈 𝙱𝙾𝚂𝚂 💠: [{DEFAULTUSER}](tg://user?id={tag})\n\n"
     ALIVE_MESSAGE += "🔰 𝙶𝚁𝙾𝚄𝙿 🔰 : [SUPPORT](https://t.me/LEGEND_USERBOT_SUPPORT)\n\n"
     ALIVE_MESSAGE += f"💠 [𝙳𝙴𝙿𝙻𝙾𝚈](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2FLEGENDXOP%2FLEGEN-BOT&template=https%3A%2F%2Fgithub.com%2FLEGENDXOP%2FLEGEND-ROBOT) 𝚈𝙾𝚄𝚁 𝙾𝚆𝙽 𝙾𝙿 [{BOT}](http://github.com/legendxop/legend-bot)  💠\n"   
     await awake.delete() 
     await borg.send_file(awake.chat_id, PHOTO,caption=ALIVE_MESSAGE)
   elif PHOTO == None:
     PHOTO = "https://telegra.ph/file/0ed5f920e8a5e9a7b0029.jpg"
     tag = borg.uid
     uptm = await legend.get_readable_time((time.time() - StartTime))
     ALIVE_MESSAGE= f" ⚡️ {BOT} ⚡️  IS ON 🔥 FIRE 🔥"
     ALIVE_MESSAGE += "\n\n"
     ALIVE_MESSAGE += "💟 𝚂𝚈𝚂𝚃𝙴𝙼 𝚂𝚃𝙰𝚃𝚄𝚂 💟\n\n"
     ALIVE_MESSAGE += "☎️ 𝚃𝙴𝙻𝙴𝚃𝙷𝙾𝙽 𝚅𝙴𝚁𝚂𝙸𝙾𝙽 ☎️ : 1.20\n\n"
     ALIVE_MESSAGE += f"🔶 𝙻𝙴𝙶𝙴𝙽𝙳 𝚅𝙴𝚁𝚂𝙸𝙾𝙽 🔶 :   {VERSION}\n\n"
     ALIVE_MESSAGE += f"🔷 𝚄𝙿𝚃𝙸𝙼𝙴 🔷 : {uptm}\n\n"
     ALIVE_MESSAGE += f"💠 𝙼𝚈 𝙱𝙾𝚂𝚂 💠: [{DEFAULTUSER}](tg://user?id={tag})\n\n"
     ALIVE_MESSAGE += "🔰 𝙶𝚁𝙾𝚄𝙿 🔰 : [SUPPORT](https://t.me/LEGEND_USERBOT_SUPPORT)\n\n"
     ALIVE_MESSAGE += f"💠 [𝙳𝙴𝙿𝙻𝙾𝚈](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2FLEGENDXOP%2FLEGEN-BOT&template=https%3A%2F%2Fgithub.com%2FLEGENDXOP%2FLEGEND-ROBOT) 𝚈𝙾𝚄𝚁 𝙾𝚆𝙽 𝙾𝙿 [{BOT}](http://github.com/legendxop/legend-bot)  💠\n"   
     await awake.delete() 
     await borg.send_file(awake.chat_id, PHOTO,caption=ALIVE_MESSAGE)
   else:
     await awake.edit("please add right value on ALIVE_PHOTTO var")

CMD_HELP.update(
    {
        "awake": "Plugin : awake\
    \n\nSyntax : .awake\
    \nFunction : you can set here costom alive pic .set var ALIVE_PHOTTO (Telegraph link)"
    }
)
Example #22
0
    await hellevent.edit("ㅤㅤㅤㅤ ඞㅤㅤㅤㅤ")
    await asyncio.sleep(0.8)
    await hellevent.edit("ㅤㅤㅤㅤㅤ ඞㅤㅤㅤ")
    await asyncio.sleep(0.8)
    await hellevent.edit("ㅤㅤㅤㅤㅤㅤ ඞㅤㅤ")
    await asyncio.sleep(0.8)
    await hellevent.edit("ㅤㅤㅤㅤㅤㅤㅤ ඞㅤ")
    await asyncio.sleep(0.8)
    await hellevent.edit("ㅤㅤㅤㅤㅤㅤㅤㅤ ඞ")
    await asyncio.sleep(0.8)
    await hellevent.edit("ㅤㅤㅤㅤㅤㅤㅤㅤ ㅤ")
    await asyncio.sleep(0.2)
    if cmd == "":
        await hellevent.edit(
            f".    。    •   ゚  。   .\n .      .     。   。 .  \n\n  .    。         ඞ         。 .    •     •\n\n  ゚ {name} was an Imposter.      。 .           。 .                                        。 . \n                                    .          。    . \n '         0 Impostor remains      。 .    .                。 .        。       .          。              .               .         .    ,      。\n  ゚   .  .    ,   。   .   .     。"
        )
    elif cmd == "n":
        await hellevent.edit(
            f".    。    •   ゚  。   .\n .      .     。   。 .  \n\n  .    。         ඞ         。 .    •     •\n\n  ゚ {name} was not an Imposter.      。 .           。 .                                        。 . \n                                    .          。    . \n '         1 Impostor remains      。 .    .                。 .        。       .          。              .               .         .    ,      。\n  ゚   .  .    ,   。   .   .     。"
        )


CMD_HELP.update({
    "imposter":
    "**Plugin :** `imposter__`\
\n\n**Syntax : **`.imp` / `.impn` <text>\
\n**Usage : ** Find imposter with stickers.\
\n\n**Syntax : **`.timp` / `.timpn` <text>\
\n**Usage : ** Find imposter only text."
})
Example #23
0
    text = deEmojify(text)
    borgfile = await kannagen(text)
    await borg.client.send_file(borg.chat_id, borgfile, reply_to=reply_to_id)
    await borg.delete()


CMD_HELP.update({
    "tweet":
    "Tweet\
\n\n`.tweet` (text)\
     \nUsage : Tweet with modi\
\n\n`.modi` (text)\
     \nUsage : Tweet with modi\
\n\n`.trump` (text)\
     \nUsage : Tweet with trump\
\n\n`.mia` (text)\
     \nUsage : Tweet with mia\
\n\n`.pappu` (text)\
     \nUsage : Tweet with Rahul Gandhi\
\n\n`.gandhi` (text)\
     \nUsage : Tweet with Baapu🥺\n(No offence. Fun purpose only)\
\n\n`.sunny` (text)\
     \nUsage : Tweet with sunny leone\
\n\n`.johhny` (text)\
     \nUsage : Tweet with johhny sins\
\n\n`.cmm` (text)\
     \nUsage : Get a banner\
\n\n`.kanna` (text)\
     \nUsage : Kanna write for you"
})
Example #24
0
            tempFedId += x

    await event.edit(f"UNFBANNING IN {len(fedList)} FEDS BY {PRO}.")
    try:
        await bot.send_message(chat, f"/start")
    except BaseException:
        await event.edit("FBAN_GROUP_ID is incorrect.")
        return
    await asyncio.sleep(5)
    for fed in fedList:
        await bot.send_message(chat, f"/joinfed {fed}")
        await asyncio.sleep(5)
        await bot.send_message(chat, f"/unfban {FBAN}")
        await asyncio.sleep(5)
    await event.edit(
        f"ULTRAUnFBan Completed. Affected {len(fedList)} Feds by {PRO}.\n#UltraX Userbot"
    )


# By TEAMLEGEND
# OWNED BY TELEBOT

CMD_HELP.update({
    "superfban":
    ".superfban <username/userid> <reason>\
        \n**Usage**: Mass-Ban in all feds you are admin in.\
        \nSet `EXCLUDE_FED fedid1|fedid2` in heroku vars to exclude those feds.\
        \nSet var `FBAN_GROUP_ID` to the group with rose, where you want FBan to take place.\
        \n\nGet help - @ULTRAXCHAT OR @UltraXOT."
})
            await ok.edit(audio.text + "\n\nƒє∂ ιηƒσ єχтяα¢тє∂ ву υℓтяα χ вσт")
        except YouBlockedUserError:
            await ok.edit(
                "**Error**\n `Unblock` **@MissRose_Bot** `and try again!")


@borg.on(admin_cmd(pattern="myfeds"))
async def myfeds(event):
    LEGENDX = await event.edit("`Wᴇɪᴛ ᴍᴀsᴛᴇʀ ᴄʜᴇᴄᴋɪɴɢ ʏᴏᴜʀ ᴀʟʟ ғᴇᴅs...``")
    async with borg.conversation(bot) as rose:
        await rose.send_message("/start")
        await rose.get_response()
        await rose.send_message("/myfeds")
        pro = await rose.get_response()
        if "Looks like" in pro.text:
            await pro.click(0)
            await asyncio.sleep(1.5)
            pro = await rose.get_response()
            await borg.send_file(event.chat_id,
                                 pro,
                                 caption='**Cʜᴇᴄᴋᴇᴅ ʙʏ UʟᴛʀᴀX ฅ^•ﻌ•^ฅ**')
        else:
            await LEGENDX.edit(pro.text + "\n\n**Cʜᴇᴄᴋᴇᴅ ʙʏ UʟᴛʀᴀX ฅ^•ﻌ•^ฅ**")


CMD_HELP.update({
    "fedstuff":
    ".fstat <username/userid/reply to user>\nUse - To check the persons fedban stat in @MissRose_Bot.\
        \n\n.fedinfo <fedid>\nUse - To see info about the fed."
})
Example #26
0
# For @UniBorg
# (c) Shrimadhav U K

from telethon import events, functions, types
from uniborg.util import admin_cmd
from ULTRA import CMD_HELP
from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest


@borg.on(admin_cmd("listmyusernames"))
async def mine(event):
    """ For .reserved command, get a list of your reserved usernames. """
    result = await bot(GetAdminedPublicChannelsRequest())
    output_str = ""
    for channel_obj in result.chats:
        output_str += f"{channel_obj.title}\n@{channel_obj.username}\n\n"
    await event.edit(output_str)


CMD_HELP.update({
    "LIST MY USERNAMES":
    "**Plugin : **`listmyusernames`\
    \n\n**Syntax : **`.listmyusernames`\
    \n**Function : **this plugin give you your all channel and groups usernamen"
})
Example #27
0
                                         NOT_FOUND_STRING,
                                         parse_mode="html",
                                         time=5)
            await event.edit(SENDING_STRING, parse_mode="html")
            await baka[0].click(0)
            music = await conv.get_response()
            await event.client.send_read_acknowledge(conv.chat_id)
        except YouBlockedUserError:
            await event.edit(BOT_BLOCKED_STRING, parse_mode="html")
            return
        await event.client.send_file(
            event.chat_id,
            music,
            caption=f"<b>==> <code>{song}</code></b>",
            parse_mode="html",
        )
        await event.delete()
        await delete_messages(event, chat, purgeflag)


CMD_HELP.update({
    "utube":
    "__**PLUGIN NAME :** All YouTube__\
    \n\n📌** CMD ★** `.uta (song name)`\
    \n**USAGE   ★  **Send sudio song via Lybot\
    \n\n📌** CMD ★** `.utv (song name)`\
    \n**USAGE   ★  **Send video song via vidbot \
    \n\n📌** CMD ★** `.ut (utube video link)`\
    \n**USAGE   ★  **not fixed yet, we'll try to fix later 😅😅"
})
Example #28
0
                                           input,
                                           color_offset=True,
                                           gif=True)
        DURATION = 200
        LOOP = 0
        glitch_img[0].save(Glitched,
                           format='GIF',
                           append_images=glitch_img[1:],
                           save_all=True,
                           duration=DURATION,
                           loop=LOOP)
        await bot.send_file(event.chat_id,
                            Glitched,
                            reply_to_message_id=reply_to_id)
        os.remove(Glitched)
        await event.delete()
    for files in (remixsticker, glitch_file):
        if files and os.path.exists(files):
            os.remove(files)


CMD_HELP.update({
    "glitch":
    ".glitch` reply to media file\
\nUsage:glitches the given mediafile(gif , stickers , image, videos) to a gif and glitch range is from 1 to 8.\
If nothing is mentioned then by default it is 2\
\n\n.glitchs reply to media file\
\nUsage:glitches the given mediafile(gif , stickers , image, videos) to a sticker and glitch range is from 1 to 8.\
If nothing is mentioned then by default it is 2."
})
Example #29
0
                id=stickerset_attr.stickerset.id,
                access_hash=stickerset_attr.stickerset.access_hash)))
    pack_emojis = []
    for document_sticker in get_stickerset.packs:
        if document_sticker.emoticon not in pack_emojis:
            pack_emojis.append(document_sticker.emoticon)

    OUTPUT = f"**Sticker Title:** `{get_stickerset.set.title}\n`" \
        f"**Sticker Short Name:** `{get_stickerset.set.short_name}`\n" \
        f"**Official:** `{get_stickerset.set.official}`\n" \
        f"**Archived:** `{get_stickerset.set.archived}`\n" \
        f"**Stickers In Pack:** `{len(get_stickerset.packs)}`\n" \
        f"**Emojis In Pack:**\n{' '.join(pack_emojis)}"

    await event.edit(OUTPUT)


CMD_HELP.update({
    "stickers":
    ".kang\
\nUsage: Reply .kang to a sticker or an image to kang it to your userbot pack.\
\n\n.kang [emoji('s)]\
\nUsage: Works just like .kang but uses the emoji('s) you picked.\
\n\n.kang [number]\
\nUsage: Kang's the sticker/image to the specified pack but uses 🤔 as emoji.\
\n\n.kang [emoji('s)] [number]\
\nUsage: Kang's the sticker/image to the specified pack and uses the emoji('s) you picked.\
\n\n.stkrinfo\
\nUsage: Gets info about the sticker pack."
})
Example #30
0
        event.message.to_id
        chat_id = event.chat_id
        sender = await borg.get_entity(chat_id)
        if chat_id == borg.uid:
            return
# madboy482
# chal nikal lawde, kang krne ka try bhi mat mar
# fixed by madboy482
        if sender.bot:
            return
        if sender.verified:
            return


# madboy482
# chal nikal lawde, kang krne ka try bhi mat mar
# fixed by madboy482
        if not pmpermit_sql.is_approved(chat_id):
            await borg(functions.contacts.BlockRequest(chat_id))

CMD_HELP.update({
    "pmsecurity":
    ".approve/.a\nUse - Approve PM\
        \n\n.disapprove/.da\nUse - DisApprove PM\
        \n\n.listapproved\nUse - Get all approved PMs.\
        \n\nSet var PMPERMIT_PIC for custom PM Pic, CUSTOM_PMPERMIT for custom text, PM SECURITY <on/off> to enable/disable, INSTANT_BLOCK <on/off>.\
        \nGet help from @UltraXchaT."
})

# (C) 2021 by UltraX