Exemple #1
0
.grs"""

from datetime import datetime

import requests
from bs4 import BeautifulSoup

from uniborg.util import lightning_cmd


def progress(current, total):
    logger.info("Downloaded {} of {}\nCompleted {}".format(
        current, total, (current / total) * 100))


@borg.on(lightning_cmd(pattern="gs (.*)"))
async def _(event):
    if event.fwd_from:
        return
    start = datetime.now()
    await event.edit("searching")
    # SHOW_DESCRIPTION = False
    input_str = event.pattern_match.group(
        1
    )  # + " -inurl:(htm|html|php|pls|txt) intitle:index.of \"last modified\" (mkv|mp4|avi|epub|pdf|mp3)"
    input_url = "https://bots.shrimadhavuk.me/search/?q={}".format(input_str)
    headers = {"USER-AGENT": "UniBorg"}
    response = requests.get(input_url, headers=headers).json()
    output_str = " "
    for result in response["results"]:
        text = result.get("title")
Exemple #2
0
"""
Telegram Channel Media Downloader Plugin for userbot.
usage: .geta channel_username [will  get all media from channel, tho there is limit of 3000 there to prevent API limits.]
       .getc number_of_messsages channel_username  
By: @Zero_cool7870
"""
import os
import subprocess

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"getc"))
async def get_media(event):
    if event.fwd_from:
        return
    dir = "./temp/"
    try:
        os.makedirs("./temp/")
    except:
        pass
    channel_username = event.text
    limit = channel_username[6:9]
    print(limit)
    channel_username = channel_username[11:]
    print(channel_username)
    await event.edit("Downloading Media From this Channel.")
    msgs = await borg.get_messages(channel_username, limit=int(limit))
    with open("log.txt", "w") as f:
        f.write(str(msgs))
    for msg in msgs:
Exemple #3
0
def time_formatter(milliseconds: int) -> str:
    """Inputs time in milliseconds, to get beautified time,
    as string"""
    seconds, milliseconds = divmod(int(milliseconds), 1000)
    minutes, seconds = divmod(seconds, 60)
    hours, minutes = divmod(minutes, 60)
    days, hours = divmod(hours, 24)
    tmp = (((str(days) + " day(s), ") if days else "") +
           ((str(hours) + " hour(s), ") if hours else "") +
           ((str(minutes) + " minute(s), ") if minutes else "") +
           ((str(seconds) + " second(s), ") if seconds else "") +
           ((str(milliseconds) + " millisecond(s), ") if milliseconds else ""))
    return tmp[:-2]


@borg.on(lightning_cmd(pattern="vsong (.*)"))
async def download_video(v_url):
    pro = v_url
    sender = await pro.get_sender()
    me = await pro.client.get_me()
    pro1 = v_url.text
    if not sender.id == me.id:
        dc = await pro.reply("`processing, please weit...`")
    else:
        dc = await pro.edit("`processing, please weit...😍`")
    teamcobra = pro1[8:]
    if not teamcobra:
        return await dc.edit("`Error \nusage vsong <song name>`")
    search = SearchVideos(teamcobra, offset=1, mode="json", max_results=1)
    test = search.result()
    p = json.loads(test)
Exemple #4
0
"""Emoji

Available Commands:

.padmin"""


import asyncio

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"padmin"))
async def _(event):

    if event.fwd_from:

        return

    animation_interval = 1

    animation_ttl = range(0, 20)

    await event.edit("Promoting")

    animation_chars = [
        "**Promoting User As Admin...**",
        "**Enabling All Permissions To User...**",
        "**(1) Send Messages: ☑️**",
        "**(1) Send Messages: ✅**",
        "**(2) Send Media: ☑️**",
Exemple #5
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) Shrimadhav U K
import asyncio

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="typing (.*)"))
async def _(event):
    if event.fwd_from:
        return
    # https://t.me/AnotherGroup/176551
    input_str = event.pattern_match.group(1)
    shiiinabot = "\u2060"
    for i in range(601):
        shiiinabot += "\u2060"
    try:
        await event.edit(shiiinabot)
    except Exception as e:
        logger.warn(str(e))
    typing_symbol = "|"
    DELAY_BETWEEN_EDITS = 0.3
    previous_text = ""
    await event.edit(typing_symbol)
    await asyncio.sleep(DELAY_BETWEEN_EDITS)
    for character in input_str:
        previous_text = previous_text + "" + character
        typing_text = previous_text + "" + typing_symbol
        try:
            await event.edit(typing_text)
Exemple #6
0
import asyncio
import os
from datetime import datetime

import qrcode
from bs4 import BeautifulSoup

from uniborg.util import lightning_cmd


def progress(current, total):
    logger.info("Downloaded {} of {}\nCompleted {}".format(
        current, total, (current / total) * 100))


@borg.on(lightning_cmd(pattern="getqr"))
async def _(event):
    if event.fwd_from:
        return
    start = datetime.now()
    if not os.path.isdir(Config.TMP_DOWNLOAD_DIRECTORY):
        os.makedirs(Config.TMP_DOWNLOAD_DIRECTORY)
    downloaded_file_name = await borg.download_media(
        await event.get_reply_message(),
        Config.TMP_DOWNLOAD_DIRECTORY,
        progress_callback=progress,
    )
    # parse the Official ZXing webpage to decode the QR
    command_to_exec = [
        "curl",
        "-X",
"""Emoji
Available Commands:
.system"""


import asyncio

from telethon.tl.functions.users import GetFullUserRequest

from uniborg.util import lightning_cmd
from userbot import CMD_HELP


@borg.on(lightning_cmd(pattern=r"system"))
async def _(event):
    if event.fwd_from:
        return
    animation_interval = 2
    animation_ttl = range(0, 11)
    if event.reply_to_msg_id:
        reply_message = await event.get_reply_message()
        replied_user = await event.client(GetFullUserRequest(reply_message.from_id))
        replied_user.user.first_name
        replied_user.user.username
        useri_d = event.sender_id
        if useri_d == 1311769691:
            await event.edit(
                "This is My Master\nI can't hack my master's Account\n**How dare you trying to hack my master's account nigger!**\n\n__Your account has been hacked! Pay 69$ to my master__ @keinshin __to release your account__"
            )
        else:
            await event.edit("Hacking..")
Exemple #8
0
from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"test"))
async def test(event):
    if event.fwd_from:
        return
    await event.edit("Test Successfull. Boss !")
Exemple #9
0
"""Fun pligon...for DC
\nCode by DC , ©[Hellboi_atul](https://t.me/hellboi_atul)
type `.degi` and `.nehi` to see the fun.
"""
import asyncio

from telethon import events

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="degi ?(.*)"))
async def _(event):
    if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@",
                                                             "!"):
        await event.edit("Wo")
        await asyncio.sleep(0.7)
        await event.edit("Degi")
        await asyncio.sleep(1)
        await event.edit("Tum")
        await asyncio.sleep(0.8)
        await event.edit("Ekbar")
        await asyncio.sleep(0.9)
        await event.edit("Mang")
        await asyncio.sleep(1)
        await event.edit("Kar")
        await asyncio.sleep(0.8)
        await event.edit("Toh")
        await asyncio.sleep(0.7)
        await event.edit("Dekho")
        await asyncio.sleep(1)
Exemple #10
0
# All in one code.
"""
Available Commands:
.tlol
.lol
.heart
.candy
.nothappy"""

import asyncio
from collections import deque

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"candy"))
async def _(event):
    if event.fwd_from:
        return
    deq = deque(list("🍦🍧🍩🍪🎂🍰🧁🍫🍬🍭"))
    for _ in range(999):
        await asyncio.sleep(1)
        await event.edit("".join(deq))
        deq.rotate(1)


@borg.on(lightning_cmd(pattern=r"nothappy"))
async def _(event):
    if event.fwd_from:
        return
    deq = deque(list("😁☹️😁☹️😁☹️😁"))
Exemple #11
0
"""Restart or Terminate the bot from any chat
Available Commands:
.restartsys
.shutdown"""
# This Source Code Form is subject to the terms of the GNU
# General Public License, v.3.0. If a copy of the GPL was not distributed with this
# file, You can obtain one at https://www.gnu.org/licenses/gpl-3.0.en.html
import asyncio
import os
import sys

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="restart"))
async def _(event):
    await event.edit(
        "Black Lightning restarted successfully. Wait for 2-3 minutes to complete all processes."
    )
    await borg.disconnect()
    os.execl(sys.executable, sys.executable, *sys.argv)
    # You probably don't need it but whatever
    quit()


@borg.on(lightning_cmd(pattern="shutdown"))
async def _(event):
    if event.fwd_from:
        return
    await event.edit(
        "Turning dynos off... Whenever you want to start me open dynos manually."
Exemple #12
0
"""Evaluate Python Code inside Telegram
Syntax: .eval PythonCode"""
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import io
import sys
import traceback

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd("eval"))
async def _(event):
    if event.fwd_from:
        return
    await event.edit("Processing ...")
    cmd = event.text.split(" ", maxsplit=1)[1]
    reply_to_id = event.message.id
    if event.reply_to_msg_id:
        reply_to_id = event.reply_to_msg_id

    old_stderr = sys.stderr
    old_stdout = sys.stdout
    redirected_output = sys.stdout = io.StringIO()
    redirected_error = sys.stderr = io.StringIO()
    stdout, stderr, exc = None, None, None

    try:
        await aexec(cmd, event)
Exemple #13
0
"""BarCode Generator
Command .barcode (your text)
By @snappy101
"""

import asyncio
import os
from datetime import datetime

import barcode
from barcode.writer import ImageWriter
from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="barcode ?(.*)"))
async def _(event):
    if event.fwd_from:
        return
    await event.edit("...")
    start = datetime.now()
    input_str = event.pattern_match.group(1)
    message = "SYNTAX: `.barcode <long text to include>`"
    reply_msg_id = event.message.id
    if input_str:
        message = input_str
    elif event.reply_to_msg_id:
        previous_message = await event.get_reply_message()
        reply_msg_id = previous_message.id
        if previous_message.media:
            downloaded_file_name = await borg.download_media(
                previous_message,
Exemple #14
0
"""
StartPage Search Plugin for Userbot . //Alternative to Google Search
cmd : .sch search_query 
By: @Zero_cool7870

"""

import json
import os

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="sch ?(.*)", allow_sudo=True))
async def sp_search(event):
    search_str = event.pattern_match.group(1)

    await event.edit("**Searching for " + search_str + " ...**")

    command = "sp --json " + search_str + " > out.json"

    os.system(command)

    f = open("out.json", "r").read()

    data = json.loads(str(f))

    msg = "**Search Query** \n`" + search_str + "`\n**Results**\n"

    for element in data:
        msg = msg + "⁍ [" + element["title"] + "](" + element["link"] + ")\n\n"
# For @UniBorg
# (c) Shrimadhav U K

from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest

from uniborg.util import lightning_cmd


@borg.on(lightning_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)
Exemple #16
0
# BY @Deonnn
""" Game of Thrones Dialogues That You Can Use In Everyday Situations
 command .gotm
 by @Deonnn
"""


import asyncio
import random

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"gotm"))
async def _(event):

    if event.fwd_from:

        return

    await event.edit("Thinking... 🤔")

    await asyncio.sleep(2)

    x = random.randrange(1, 30)

    if x == 1:

        await event.edit(
            "[To your teachers on failing you in all your papers confidently, every time...](https://telegra.ph/file/431d178780f9bff353047.jpg)",
            link_preview=True,
Exemple #17
0
"""Emoji
Available Commands:
.wahack"""

import asyncio

from telethon.tl.functions.users import GetFullUserRequest

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"wahack"))
async def _(event):
    if event.fwd_from:
        return
    animation_interval = 2
    animation_ttl = range(0, 11)
    if event.reply_to_msg_id:
        reply_message = await event.get_reply_message()
        replied_user = await event.client(
            GetFullUserRequest(reply_message.from_id))
        replied_user.user.first_name
        replied_user.user.username
        useri_d = event.sender_id
        if useri_d == 1311769691:
            await event.edit(
                "This is My Master\nI can't hack my master's Account\n**How dare you trying to hack my master's account nigger!**\n\n__Your account has been hacked! Pay 69$ to my master__ @keinshin __to release your account__"
            )
        else:
            await event.edit("Hacking.. Your Whatsapp")
            animation_chars = [
Exemple #18
0
import json
import urllib.request

from uniborg.util import lightning_cmd
from userbot import CMD_HELP


@borg.on(lightning_cmd(pattern="iplookup (.*)"))
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)

    adress = input_str

    token = "19e7f2b6fe27deb566140aae134dec6b"

    api = "http://api.ipstack.com/" + adress + "?access_key=" + token + "&format=1"

    result = urllib.request.urlopen(api).read()
    result = result.decode()

    result = json.loads(result)
    a = result["type"]
    b = result["country_code"]
    c = result["region_name"]
    d = result["city"]
    e = result["zip"]
    f = result["latitude"]
    g = result["longitude"]
    await event.edit(
Exemple #19
0
# BY @Deonnn
"""
Game of Thrones Thoughts plugin
by @Deonnn
command .gott

"""

import asyncio
import random

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"gott", outgoing=True))
async def _(event):

    if event.fwd_from:

        return

    await event.edit("Typing...")

    await asyncio.sleep(2)

    x = random.randrange(1, 40)

    if x == 1:

        await event.edit(
            '`"The man who passes the sentence should swing the sword."`')
Exemple #20
0
"""Dictionary Plugin for @UniBorg
Syntax: .meaning <word>"""

import requests

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="meaning (.*)"))
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    input_url = "https://bots.shrimadhavuk.me/dictionary/?s={}".format(input_str)
    headers = {"USER-AGENT": "BLACK LIGHTNING"}
    caption_str = f"Meaning of __{input_str}__\n"
    try:
        response = requests.get(input_url, headers=headers).json()
        pronounciation = response.get("p")
        meaning_dict = response.get("lwo")
        for current_meaning in meaning_dict:
            current_meaning_type = current_meaning.get("type")
            current_meaning_definition = current_meaning.get("definition")
            caption_str += (
                f"**{current_meaning_type}**: {current_meaning_definition}\n\n"
            )
    except Exception as e:
        caption_str = str(e)
    reply_msg_id = event.message.id
    if event.reply_to_msg_id:
        reply_msg_id = event.reply_to_msg_id
Exemple #21
0
    "`You should try sleeping forever.`",
    "`Pick up a gun and shoot yourself.`",
    "`Try bathing with Hydrochloric Acid instead of water.`",
    "`Go Green! Stop inhaling Oxygen.`",
    "`God was searching for you. You should leave to meet him.`",
    "`You should Volunteer for target in an firing range.`",
    "`Try playing catch and throw with RDX its fun.`",
    "`People like you are the reason we have middle fingers.`",
    "`When your mom dropped you off at the school, she got a ticket for littering.`",
    "`You’re so ugly that when you cry, the tears roll down the back of your head…just to avoid your face.`",
    "`If you’re talking behind my back then you’re in a perfect position to kiss my a**!.`",
]
# ===========================================


@borg.on(lightning_cmd(pattern="run ?(.*)"))
async def _(event):
    if event.fwd_from:
        return
    bro = random.randint(0, len(RUNSREACTS) - 1)
    event.pattern_match.group(1)
    reply_text = RUNSREACTS[bro]
    await event.edit(reply_text)


@borg.on(lightning_cmd(pattern="metoo ?(.*)"))
async def _(event):
    if event.fwd_from:
        return
    bro = random.randint(0, len(METOOSTR) - 1)
    event.pattern_match.group(1)
Exemple #22
0
"""Auto Profile Updation Commands
.autoname"""
import asyncio
import time

from telethon.errors import FloodWaitError
from telethon.tl import functions

from uniborg.util import lightning_cmd
from userbot import ALIVE_NAME

DEL_TIME_OUT = 60
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Lightning"


@borg.on(lightning_cmd(pattern="autoname"))  # pylint:disable=E0602
async def _(event):
    if event.fwd_from:
        return
    while True:
        DMY = time.strftime("%d.%m.%Y")
        HM = time.strftime("%H:%M:%S")
        name = f"⌚{HM} 🔥{DEFAULTUSER}🔥 📅{DMY}"
        logger.info(name)
        try:
            await borg(
                functions.account.UpdateProfileRequest(  # pylint:disable=E0602
                    first_name=name))
        except FloodWaitError as ex:
            logger.warning(str(e))
            await asyncio.sleep(ex.seconds)
Exemple #23
0
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <https://www.gnu.org/licenses/>.
#    SpecialThx To @chsaiujwal and Stark Sir Friday Userbot

import secrets
from random import *

from password_strength import PasswordStats

from uniborg.util import lightning_cmd
from userbot import CMD_HELP
from userbot.utils import lightning_cmd


@borg.on(lightning_cmd(pattern="passcheck (.*)"))
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    stats = PasswordStats(input_str)
    sedbruh = stats.strength()
    if stats.strength() >= 0.2:
        await event.edit(
            f"<b><u>Password Checked</b></u> \n<b>Password :</b> <code>{input_str}</code> \n<b>Strength :</b> <code>{sedbruh}</code> \n<b>Result :</b> <code>Good Password</code>",
            parse_mode="HTML",
        )
    else:
        await event.edit(
            f"<b><u>Password Checked</b></u> \n<b>Password :</b> <code>{input_str}</code> \n<b>Strength :</b> <code>{sedbruh}</code> \n<b>Result :</b> <code>Bad Password</code>",
            parse_mode="HTML",
Exemple #24
0
# Credit: @r4v4n4
"""Emoji

Available Commands:

.fleave"""


import asyncio

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"fleave"))
async def _(event):

    if event.fwd_from:

        return

    animation_interval = 1

    animation_ttl = range(0, 17)

    # input_str = event.pattern_match.group(1)

    # if input_str == "fleave":

    await event.edit("fleave")

    animation_chars = [
Exemple #25
0
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd("mask ?(.*)"))
async def _(event):
    if event.fwd_from:
        return
    if not event.reply_to_msg_id:
        await event.edit("```Reply to any user message.```")
        return
    reply_message = await event.get_reply_message()
    if not reply_message.media:
        await event.edit("```reply to text message```")
        return
    chat = "@hazmat_suit_bot"
    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=905164246))
            await borg.send_message(chat, reply_message)
            response = await response
        except YouBlockedUserError:
            await event.reply(
Exemple #26
0
"""
Available Commands:
.music"""


import asyncio

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"music"))
async def _(event):

    if event.fwd_from:

        return

    animation_interval = 1.5

    animation_ttl = range(0, 11)

    # input_str = event.pattern_match.group(1)

    # if input_str == "music":

    await event.edit("music")

    animation_chars = [
        "РгцРгцРгц 81% РађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађ`Рюќ№ИЈ`\n\nРађРађРађРађРађ[cee jay Music Player](tg://user?id=1289422521)\n\nРађРађРађРађ**Now Playing:Kamasutra BGM**\n\n**00:00** Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒ **00:10**\n\nРађРађРађРађРађ`­Ъћѓ` `РЈ«№ИЈ` `РЈф№ИЈ` `РќХ№ИЈ` `РЈЕ№ИЈ` `РЈГ№ИЈ`\n\n**РађNext Song:** __I Am Sexy And I Know It.__\n\nРађРађРађРађ**РађDevice: I phone X**",
        "РгцРгцРгц 81% РађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађ`Рюќ№ИЈ`\n\nРађРађРађРађРађ[cee jay Music Player](tg://user?id=1289422521)\n\nРађРађРађРађ**Now Playing:Kamasutra BGM**\n\n**00:01** Рќ░Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒ **00:10**\n\nРађРађРађРађРађ`­Ъћѓ` `РЈ«№ИЈ` `РЈф№ИЈ` `РЈИ№ИЈ` `РЈЕ№ИЈ` `РЈГ№ИЈ`\n\n**РађNext Song:** __I Am Sexy And I Know It.__\n\nРађРађРађРађ**РађDevice: I phone X**",
        "РгцРгцРгц 81% РађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађРађ`Рюќ№ИЈ`\n\nРађРађРађРађРађ[cee jay Music Player](tg://user?id=1289422521)\n\nРађРађРађРађ**Now Playing:Kamasutra BGM**\n\n**00:03** Рќ░Рќ░Рќ░Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒Рќ▒ **00:10**\n\nРађРађРађРађРађ`­Ъћѓ` `РЈ«№ИЈ` `РЈф№ИЈ` `РЈИ№ИЈ` `РЈЕ№ИЈ` `РЈГ№ИЈ`\n\n**РађNext Song:** __I Am Sexy And I Know It.__\n\nРађРађРађРађ**РађDevice: I phone X**",
Exemple #27
0
"""Query Indian Financial System Code to get address of the relevant bank or branch
Syntax: .ifsc rp <IFSC CODE>"""
import json

import requests

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern="ifsc(.*)"))
async def _(event):
    if event.fwd_from:
        return
    input_str = event.pattern_match.group(1)
    url = "https://ifsc.razorpay.com/{}".format(input_str)
    r = requests.get(url)
    if r.status_code == 200:
        b = r.json()
        a = json.dumps(b, sort_keys=True, indent=4)
        # https://stackoverflow.com/a/9105132/4723940
        await event.edit(str(a))
    else:
        await event.edit("`{}`: {}".format(input_str, r.text))
Exemple #28
0
import asyncio

from uniborg.util import lightning_cmd


@borg.on(lightning_cmd(pattern=r"quickheal"))
async def _(event):

    if event.fwd_from:

        return

    animation_interval = 5

    animation_ttl = range(0, 11)

    input_str = event.pattern_match.group("Scanning")

    await event.edit(input_str)

    animation_chars = [
        "`Downloading File..`",
        "`File Downloaded....`",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 0%\n▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 4%\n█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 8%\n██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 20%\n█████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 36%\n█████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 52%\n█████████████▒▒▒▒▒▒▒▒▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 84%\n█████████████████████▒▒▒▒ `",
        "`Quick Heal Total Security Checkup\n\n\nSubscription: Pru User\nValid Until: 31/12/2099\n\nFile Scanned... 100%\n█████████████████████████ `",
"""Emoji

Available Commands:

.deploy"""


import asyncio

from uniborg.util import lightning_cmd
from userbot import AUTONAME

DEFAULTUSER = str(AUTONAME) if AUTONAME else "Genius boy"


@borg.on(lightning_cmd(pattern=r"deploy"))
async def _(event):

    if event.fwd_from:

        return

    animation_interval = 10

    animation_ttl = range(0, 12)

    # input_str = event.pattern_match.group(1)

    await event.edit("Deploying...")

    animation_chars = [
Exemple #30
0
"""Thakn You @pureindialover
"""
import asyncio

from uniborg.util import lightning_cmd
from userbot.plugins.sql_helper.mute_sql import is_muted, mute, unmute


# @command(outgoing=True, pattern=r"^.mute ?(\d+)?")
@borg.on(lightning_cmd(pattern="mute ?(\d+)?"))
async def startmute(event):
    private = False
    if event.fwd_from:
        return
    elif event.is_private:
        await event.edit("Unexpected issues or ugly errors may occur!")
        await asyncio.sleep(3)
        private = True
    if any([
            x in event.raw_text for x in (
                "/mute",
                "!mute",
                "amute",
                "bmute",
                "cmute",
                "dmute",
                "emute",
                "fmute",
                "gmute",
                "hmute",
                "imute",