async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) await event.get_reply_message() chat = "@SkeddyBot" await event.edit("```Wait...```") await asyncio.sleep(2) await event.edit("```Setting You Remainder.........```") await asyncio.sleep(3) await event.edit(f"Done Remainder Set For {input_str}") async with event.client.conversation(chat) as conv: try: response = conv.wait_event( events.NewMessage(incoming=True, from_users=264121194)) await conv.send_message("/start") await conv.get_response() await conv.send_message("Asia/Kolkata") await conv.get_response() await conv.send_message("➕Add" + input_str) await conv.get_response() audio = await conv.get_response() await borg.send_message(event.chat_id, audio.text) await event.delete() response = await response except YouBlockedUserError: await event.reply("```Unblock @SkeddyBot```") return if response.text.startswith("I can't find that"): await event.edit("👀") else: await event.delete() await event.client.send_file(event.chat_id, response.message) CMD_HELP.update({ "skeedy": ".skeedy `<reason for remainder> <timing>\nUse - Set A Remainder" })
async def _(event): args = event.pattern_match.group(1).lower() if args: if args in CMD_HELP: await event.edit(f"Here is some help for the {CMD_HELP[args]}") else: await event.edit( f"Help string for {args} not found! Type `.help` to see valid module names." ) else: string = "" for i in CMD_HELP.values(): string += f"`{str(i[0])}`, " string = string[:-2] await event.edit("Please specify which module you want help for!\n\n" f"{string}")
for x in range(len(time_list)): time_list[x] = str(time_list[x]) + time_suffix_list[x] if len(time_list) == 4: ping_time += time_list.pop() + ", " time_list.reverse() ping_time += ":".join(time_list) return ping_time @friday.on(friday_on_cmd(pattern="ping$")) async def _(event): starkislub = await edit_or_reply(event, "`Pong !`") if event.fwd_from: return start = datetime.now() end = datetime.now() ms = (end - start).microseconds / 1000 uptime = get_readable_time((time.time() - Lastupdate)) await starkislub.edit( f"**🙈I'm Online, Master ⚙🔧** \n **ᵐʸ ᶜᵘʳʳᵉⁿᵗ ᵖᶦⁿᵍʳᵃᵗᵉ**👇 \n \n ⚡️ `{ms}` \n ⚡️ `{uptime}`" ) CMD_HELP.update({ "ping": "**Ping**\ \n\n**Syntax : **`.pin`\ \n**Usage :** Get uptime and speed of your bot." })
await event.reply("Reply to any Image.") return await event.edit("hmm... Searching for Text Inside The Image...") sed = await event.get_reply_message() if isinstance(sed.media, MessageMediaPhoto): img = await borg.download_media(sed.media, sedpath) elif "image" in sed.media.document.mime_type.split("/"): img = await borg.download_media(sed.media, sedpath) else: await event.edit("Reply To Image") return crypto_steganography = CryptoSteganography("hell") secret = crypto_steganography.retrieve(img) await event.edit( f"<b><u>Decrypted Text Successfully</b></u> \n<b>text</b>:- <code>{secret}</code>", parse_mode="HTML", ) CMD_HELP.update({ "steganography": "**Steganography**\ \n\n**Syntax : **`.stegano <text> <Reply To A image>`\ \n**Usage :** Hides Given Text Inside Image.\ \n\n**Syntax : **`.unstegano <Reply To The image>`\ \n**Usage :** Reveals Hidden Text From Image.\ \n\n**Example :** `.stegano hello this is secret message` <replying to an image>.\ \n\n**What is Steganography :** Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity. Additionally this plugin also enhance the security of the steganography through data encryption. The data concealed is encrypted using AES 256 encryption, a popular algorithm used in symmetric key cryptography." })
for ts in td.find_all("a"): title = ts.get_text() lool = lool + 1 for ts in td.find_all("a", attrs={"href": re.compile("^/book/")}): ref = ts.get("href") link = "https://b-ok.cc" + ref f.write("\n" + title) f.write("\nBook link:- " + link + "\n\n") f.write("By PermanUserbot.") f.close() caption = "By PermanUserbot.\n Get your Superpowers with [PermanUserbot](github.com/perman-dev/perman_ub)" await borg.send_file( event.chat_id, "book.txt", caption= f"**BOOKS GATHERED SUCCESSFULLY!\n\nBY PERMANUSERBOT. Get your Superpowers with [PermanUserbot](github.com/perman-dev/perman_ub).**", ) os.remove("book.txt") CMD_HELP.update({ "booksdl": "**Books Scraper**\ \n\n**Syntax : **`.book <book name>`\ \n**Usage :** Gets Instant Download Link Of Given Book." })
"`Congratulations and BRAVO!`", "`You did it! So proud of you!`", "`This calls for celebrating! Congratulations!`", "`I knew it was only a matter of time. Well done!`", "`Congratulations on your well-deserved success.`", "`Heartfelt congratulations to you.`", "`Warmest congratulations on your achievement.`", "`Congratulations and best wishes for your next adventure!”`", "`So pleased to see you accomplishing great things.`", "`Feeling so much joy for you today. What an impressive achievement!`", ] @friday.on(friday_on_cmd(pattern="congo")) @friday.on(sudo_cmd(pattern="congo", allow_sudo=True)) async def _(event): if event.fwd_from: return bro = random.randint(0, len(RUNSREACTS) - 1) reply_text = RUNSREACTS[bro] await edit_or_reply(event, reply_text) CMD_HELP.update( { "congratulations": "**Congratulations**\ \n\n**Syntax : **`.congo`\ \n**Usage :** This plugin is used to congratulate someone." } )
async def get_sticker_emoji(event): reply_message = await event.get_reply_message() try: final_emoji = reply_message.media.document.attributes[1].alt except: final_emoji = "😎" return final_emoji def zipdir(path, ziph): # ziph is zipfile handle for root, dirs, files in os.walk(path): for file in files: ziph.write(os.path.join(root, file)) os.remove(os.path.join(root, file)) CMD_HELP.update( { "stickers": "**Stickers**\ \n\n**Syntax : **`.kang <reply to sticker/image>`\ \n**Usage :** Kangs the image into your sticker pack.\ \n\n**Syntax : **`.packinfo <reply to a sticker>`\ \n**Usage :** Shows info about the pack.\ \n\n**Syntax : **`.getsticker <reply to sticker>`\ \n**Usage :** Downloada the sticker." } )
) event.chat_id if not is_muted(userid, "gmute"): return await event.edit("This user is not gmuted") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Successfully ungmuted that person") @command(incoming=True) async def watcher(event): if is_muted(event.sender_id, "gmute"): await event.delete() CMD_HELP.update({ "gtools": "**Global Tools**\ \n\n**Syntax : **`.gmute <replying to user message>`\ \n**Usage :** Gmute User And Delete His Msg.\ \n\n**Syntax : **`.ungmute <replying to user message>`\ \n**Usage :** UnGmute User And Stops Deleting His Msgs.\ \n\n**Syntax : **`.gban <replying to user message>`\ \n**Usage :** Gban User And Blow Him From Your Groups\ \n\n**Syntax : **`.ungban <replying to user message>`\ \n**Usage :** Ugban User." })
screenshot_image.name = "screencapture.png" try: await borg.send_file( event.chat_id, screenshot_image, caption=input_str, force_document=True, reply_to=event.message.reply_to_msg_id, ) await event.delete() except Exception as e: await event.edit(str(e)) else: await event.edit(response_api.text) CMD_HELP.update({ "webshot": "**Webshot**\ \n\n**Syntax : **`.screencapture <webpage link>`\ \n**Usage :** takes screenshot of webpage." })
return results async def scam(results, lim): single = opener.open(results["similar_images"]).read() decoded = single.decode("utf-8") imglinks = [] counter = 0 pattern = r"^,\[\"(.*[.png|.jpg|.jpeg])\",[0-9]+,[0-9]+\]$" oboi = re.findall(pattern, decoded, re.I | re.M) for imglink in oboi: counter += 2 if not counter >= int(lim): imglinks.append(imglink) else: break return imglinks CMD_HELP.update( { "reverse": ".reverse\ \nUsage: Reply to a pic/sticker to revers-search it on Google Images !!" } )
"""use command .ducduckgo""" from uniborg.util import friday_on_cmd from virtualuserbot import CMD_HELP @friday.on(friday_on_cmd("ducduckgo (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) sample_url = "https://duckduckgo.com/?q={}".format( input_str.replace(" ", "+")) if sample_url: link = sample_url.rstrip() await event.edit( "Let me 🦆 DuckDuckGo that for you:\n🔎 [{}]({})".format( input_str, link)) else: await event.edit("something is wrong. please try again later.") CMD_HELP.update({ "duckduckgo": "**Duckduckgo**\ \n\n**Syntax : **`.ducduckgo <query>`\ \n**Usage :** get duckduckgo search query link" })
from virtualuserbot.utils import friday_on_cmd @friday.on(friday_on_cmd("gangasta ?(.*)")) async def _(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): await event.edit("EVERyBOdy") await asyncio.sleep(0.3) await event.edit("iZ") await asyncio.sleep(0.2) await event.edit("GangSTur") await asyncio.sleep(0.5) await event.edit("UNtIL ") await asyncio.sleep(0.2) await event.edit("I") await asyncio.sleep(0.3) await event.edit("ArRivE") await asyncio.sleep(0.3) await event.edit("🔥🔥🔥") await asyncio.sleep(0.3) await event.edit("EVERyBOdy iZ GangSTur UNtIL I ArRivE 🔥🔥🔥") CMD_HELP.update({ "gangasta": "**Gangasta**\ \n\n**Syntax : **`.gangasta`\ \n**Usage :** shows your gangster skills." })
if not args: get = await event.get_reply_message() args = get.text if not args: await edit_or_reply(event, "What I am Supposed to change give text") return string = " ".join(args).lower() for normaltextcharacter in string: if normaltextcharacter in fonts.normaltext: superscriptcharacter = fonts.superscriptfont[ fonts.normaltext.index(normaltextcharacter)] string = string.replace(normaltextcharacter, superscriptcharacter) await edit_or_reply(event, string) CMD_HELP.update({ "funnyfonts": """**Plugin : **`funnyfonts` **Commands found in funnyfonts are** • `.str` • `.zal` • `.cp` • `.weeb` • `.downside` • `.subscript` • `.superscript` **Function : **__Reply the command to the text message or give input along with command to convert that text to given font style__""" })
from virtualuserbot import CMD_HELP CMD_HELP.update( { "Whats New": """**Mini Update 3.1 :** PermanUserbot New features Fixed the Errors. ** Errors and Bug Fixes ** No errors anymore.. All logging features running now ** Custom Emoji on Help ** `.set var EMOJI_TO_DISPLAY_IN_HELP <emoji>` ** Stickers Improovements ** Kang any Media ** New qbot ** `.qbot` to create quotes ** Plus More ** PM Protection done right. Translation also done right ** Many Bug Fixes ** """ } )
with open("hits.txt", "w") as hitfile: for s in hits_dict: hitfile.write(s + " | @FridayOT\n") await borg.send_file( event.chat_id, "hits.txt", caption= f"**!ALTBALAJI HITS!** \n**HITS :** `{hits}` \n**BAD :** `{bads}`", ) os.remove("hits.txt") CMD_HELP.update({ "cracking_tools": "**Cracking Tools**\ \n\n**Syntax : **`.cz5 <reply to combo>`\ \n**Usage :** Checks for Zee5 accounts from combo.\ \n\n**Syntax : **`.cnd <reply to combo>`\ \n**Usage :** Checks for VYPR accounts from combo.\ \n\n**Syntax : **`.cvt <reply to combo>`\ \n**Usage :** Checks for Voot accounts from combo.\ \n\n**Syntax : **`.cab <reply to combo>`\ \n**Usage :** Checks for Altbalaji accounts from combo.\ \n\n**Syntax : **`.cvx <reply to combo>`\ \n**Usage :** Checks for Vortex accounts from combo.\ \n\n**Syntax : **`.cz5 <reply to combo>`\ \n**Usage :** Checks for Zee5 accounts from combo.\ \n\n**Syntax : **`.proxy <reply to proxies file>`\ \n**Usage :** Checks for alive proxies." })
page = findall(r"page=\d+", match) try: page = page[0] page = page.replace("page=", "") match = match.replace("page=" + page[0], "") except IndexError: page = 1 search_args = (str(match), int(page)) gsearch = GoogleSearch() gresults = await gsearch.async_search(*search_args) msg = "" for i in range(len(gresults["links"])): try: title = gresults["titles"][i] link = gresults["links"][i] desc = gresults["descriptions"][i] msg += f"[{title}]({link})\n`{desc}`\n\n" except IndexError: break await q_event.edit("**Search Query:**\n`" + match + "`\n\n**Results:**\n" + msg, link_preview=False) CMD_HELP.update({ "google": "**Google**\ \n\n**Syntax : **`.gs <text to search>`\ \n**Usage :** Get the Google search result for given text." })
chat = to_write_chat else: mentions = "Bots in {} channel: \n".format(input_str) try: chat = await borg.get_entity(input_str) except Exception as e: await event.edit(str(e)) return None try: async for x in borg.iter_participants(chat, filter=ChannelParticipantsBots): if isinstance(x.participant, ChannelParticipantAdmin): mentions += "\n ⚜️ [{}](tg://user?id={}) `{}`".format( x.first_name, x.id, x.id ) else: mentions += "\n [{}](tg://user?id={}) `{}`".format( x.first_name, x.id, x.id ) except Exception as e: mentions += " " + str(e) + "\n" await event.edit(mentions) CMD_HELP.update( { "get_bot": "**Get Bot**\ \n\n**Syntax : **`.get_bot`\ \n**Usage :** Lists all the bots in a chat." } )
Languages:- {lMAO} Native Name:- {nonive} population:- {waste} Region:- {reg} Sub Region:- {sub} Time Zones:- {tom} Top Level Domain:- {lanester} wikipedia:- {wiki}</b> <u><b> Information Gathered By VirtualUserbot.</u> Get Your Own Superpowers with <a href="github.com/inukaasith/virtualuserbot"> VirtualUserbot</a>.</b> """ await borg.send_message( event.chat_id, caption, parse_mode="HTML", ) await event.delete() CMD_HELP.update({ "countries": "**Countries**\ \n\n**Syntax : **`.country <country name>`\ \n**Usage :** Gives Information About Given Country.\ \n\n**Example : **`.country Sri Lanks`\ \nThis above syntax gives Information about Sri Lanks" })
reply_to=hash_q.id, caption="`It's too big, sending a text file instead. `", ) runapp(["rm", "hashes.txt"], stdout=PIPE) else: await hash_q.reply(ans) @register(outgoing=True, pattern="^.hbase (en|de) (.*)") @errors_handler async def endecrypt(query): """For .base64 command, find the base64 encoding of the given string.""" if query.pattern_match.group(1) == "en": lething = str( pybase64.b64encode(bytes(query.pattern_match.group(2), "utf-8")))[2:] await query.reply("Shhh! It's Encoded: `" + lething[:-1] + "`") else: lething = str( pybase64.b64decode(bytes(query.pattern_match.group(2), "utf-8"), validate=True))[2:] await query.reply("Decoded: `" + lething[:-1] + "`") CMD_HELP.update({ "hash": "**Hash**\ \n\n**Syntax : **`.hash <text>`\ \n**Usage :** It encrypts given text into MD5, SHA1, SHA256, SHA512." })
) await lul.delete() os.remove(downloaded_file_name) else: await mone.edit("Incorrect URL\n {}".format(input_str)) @friday.on(friday_on_cmd(pattern="zeelink")) async def lol_kangers(event): input_str = event.raw_text.split(" ", maxsplit=1)[1] if "zee" in input_str: url = "http://devsexpo.me/zee/" sed = {"url": input_str} lmao = requests.get(url=url, headers=sed).json() else: await event.edit("Only Zee Videos Supported.") return if lmao["success"] is False: await event.edit("Task Failed Due To " + str(lmao["error"])) return await event.edit("Direct Link Fetched \nURL : " + str(lmao["url"])) CMD_HELP.update({ "download": ".dl <link|filename> or reply to media\ \nUsage: Downloads file to the server.\ \n\n.upload <path in server>\ \nUsage: Uploads a locally stored file to the chat." })
CMD_HELP.update( { "admin": ".promote <username/reply> <custom rank (optional)>\ \n**Usage:** Provides admin rights to the person in the chat.\ \n\n.demote <username/reply>\ \n**Usage:** Revokes the person's admin permissions in the chat.\ \n\n.ban <username/reply> <reason (optional)>\ \n**Usage:** Bans the person off your chat.\ \n\n.unban <username/reply>\ \n**Usage:** Removes the ban from the person in the chat.\ \n\n.mute <username/reply> <reason (optional)>\ \n**Usage:** Mutes the person in the chat, works on admins too.\ \n\n.unmute <username/reply>\ \n**Usage:** Removes the person from the muted list.\ \n\n.gmute <username/reply> <reason (optional)>\ \n**Usage:** Mutes the person in all groups you have in common with them.\ \n\n.ungmute <username/reply>\ \n**Usage:** Reply someone's message with .ungmute to remove them from the gmuted list.\ \n\n.delusers\ \n**Usage:** Searches for deleted accounts in a group. Use .delusers clean to remove deleted accounts from the group.\ \n\n.adminlist\ \n**Usage:** Retrieves a list of admins in the chat.\ \n\n.users or .users <name of member>\ \n**Usage:** Retrieves all (or queried) users in the chat.\ \n\n.setgppic <reply to image>\ \n**Usage:** Changes the group's display picture." } )
reason = f"<i>True</i>" else: reason = f"<i>False</i>" if sclient is None: oki = "<i>Token Invalid</i>" elif sclient: hmmyes = sclient.is_banned(lolu.user.id) if hmmyes: oki = f"""<i>True</i> <b>~ Reason :</b> <i>{hmmyes.reason}</i>""" else: oki = "<i>False</i>" infomsg = ( f"<b>Info Of</b> <a href=tg://user?id={lolu.user.id}>{lolu.user.first_name}</a>: \n" f"<b>- Username :</b> <i>{lolu.user.username}</i>\n" f"<b>- ID :</b> <i>{lolu.user.id}</i>\n" f"<b>- Bot :</b> <i>{lolu.user.bot}</i>\n" f"<b>- CAS Banned :</b> {reason} \n" f"<b>- Nospam+ Banned :</b> {oki}") await event.edit(infomsg, parse_mode="HTML") CMD_HELP.update({ "information": "**Information**\ \n\n**Syntax : **`.info <mention a username/reply to a message>`\ \n**Usage :** Gives you information about the username.\ \n\n**Syntax : **`.wru <mention a username/reply to a message>`\ \n**Usage :** Shows if the person is banned in NospamPlus or not." })
else: await event.edit("`Reply To Image`") return fmt = "gif" pathsn = f"./starkgangz/@fridayot.{fmt}" glitch_imgs = glitcher.glitch_image(photolove, 2, gif=True, color_offset=True) glitch_imgs[0].save( pathsn, format="GIF", append_images=glitch_imgs[1:], save_all=True, duration=DURATION, loop=LOOP, ) await borg.send_file(event.chat_id, pathsn) await okbruh.delete() for starky in (pathsn, photolove): if starky and os.path.exists(starky): os.remove(starky) CMD_HELP.update({ "glitch": "**Glitch**\ \n\n**Syntax : **`.glitch <reply to a image>`\ \n**Usage :** Creates glitch gif of given image." })
@friday.on(friday_on_cmd(pattern="filext (.*)")) async def _(event): if event.fwd_from: return await event.edit("Processing ...") sample_url = "https://www.fileext.com/file-extension/{}.html" input_str = event.pattern_match.group(1).lower() response_api = requests.get(sample_url.format(input_str)) status_code = response_api.status_code if status_code == 200: raw_html = response_api.content soup = BeautifulSoup(raw_html, "html.parser") ext_details = soup.find_all("td", {"colspan": "3"})[-1].text await event.edit( "**File Extension**: `{}`\n**Description**: `{}`".format( input_str, ext_details)) else: await event.edit( "https://www.fileext.com/ responded with {} for query: {}".format( status_code, input_str)) CMD_HELP.update({ "fileext": "**File Extension**\ \n\n**Syntax : **`.filext <extension>`\ \n**Usage :** Gives details about the extension." })
@borg.on(admin_cmd(pattern=r"bye ?(.*)")) async def bye(event): giveVar = event.text a = giveVar[5:6] if not a: a = "✨" b = giveVar[7:8] if not b: b = "🌺" await event.edit( f"{a}{b}{b}{a}{a}{b}{a}{a}{a}{b}{a}{b}{b}{b}{a}\n{a}{b}{a}{b}{a}{a}{b}{a}{b}{a}{a}{b}{a}{a}{a}\n{a}{b}{b}{a}{a}{a}{a}{b}{a}{a}{a}{b}{b}{a}{a}\n{a}{b}{a}{b}{a}{a}{a}{b}{a}{a}{a}{b}{a}{a}{a}\n{a}{b}{b}{a}{a}{a}{a}{b}{a}{a}{a}{b}{b}{b}{a}" ) CMD_HELP.update({ "customs": "__**PLUGIN NAME :** Custom animations__\ \n\n📌** CMD ★** `.hhi(emoji)(emoji)`\ \n**USAGE ★ **Try it yourself (put space ) \ \n\n📌** CMD ★** `.hhi(emoji)(emoji)`\ \n**USAGE ★ **Try it yourself (put space )\ \n\n📌** CMD ★** `.gws(emoji)`\ \n**USAGE ★ **Try it yourself (put space )\ \n\n📌** CMD ★** `.hlo(emoji)(emoji)`\ \n**USAGE ★ **Try it yourself (put space )\ \n\n📌** CMD ★** `.bye(emoji)(emoji)`\ \n**USAGE ★ **Try it yourself (put space )" })
driver.find_element_by_xpath("//button[contains(text(),'Export')]").click() sleep(5) # this might take a bit. # driver.find_element_by_xpath("//button[contains(text(),'4x')]").click() # sleep(5) await e.edit("⬛⬛⬛⬜⬜") # driver.find_element_by_xpath("//button[contains(text(),'PNG')]").click() # sleep(5) #Waiting for downloading await e.edit("⬛⬛⬛⬛⬛") file = "./carbon.png" await e.edit("✅RGB Karbon Completed, Uploading...........") await e.client.send_file( e.chat_id, file, caption="Carbonised by [VirtualUserbot](https://github.com/inukaasih/virtualuserbot)", force_document=False, reply_to=e.message.reply_to_msg_id, ) os.remove("./carbon.png") # Removing carbon.png after uploading await e.delete() # Deleting msg CMD_HELP.update( { "carbonRBG": ".karb <reply to text> " "\nCreate a cool random colorful carbon image for that text 😂😂(not work in media)" } )
country_code, ) ) else: await event.edit(response_api["message"]) @friday.on(friday_on_cmd(pattern="wttr (.*)")) async def _(event): if event.fwd_from: return sample_url = "https://wttr.in/{}.png" # logger.info(sample_url) input_str = event.pattern_match.group(1) async with aiohttp.ClientSession() as session: response_api_zero = await session.get(sample_url.format(input_str)) # logger.info(response_api_zero) response_api = await response_api_zero.read() with io.BytesIO(response_api) as out_file: await event.reply(file=out_file) await event.edit(input_str) CMD_HELP.update( { "weather": "**Weather**\ \n\n**Syntax : **`.weather <location>`\ \n**Usage :** Gives weather information about the location." } )
if r.ok: data = r.json() year = data.get("year") month = data["month"].zfill(2) day = data["day"].zfill(2) xkcd_link = "https://xkcd.com/{}".format(data.get("num")) safe_title = data.get("safe_title") data.get("transcript") alt = data.get("alt") img = data.get("img") data.get("title") output_str = """[\u2060]({})**{}** [XKCD ]({}) Title: {} Alt: {} Day: {} Month: {} Year: {}""".format(img, input_str, xkcd_link, safe_title, alt, day, month, year) await livinglegend.edit(output_str, link_preview=True) else: await livinglegend.edit("xkcd n.{} not found!".format(xkcd_id)) CMD_HELP.update({ "xkcd": "**xkcd**\ \n\n**Syntax : **`.xkcd <queryt>`\ \n**Usage :** Searches for xkcd with your query." })
except TypeError: songs = None if songs is None: await lyric.edit(f"Song **{artist} - {song}** not found!") return if len(songs.lyrics) > 4096: await lyric.edit("`Lyrics is too big, view the file to see it.`") with open("lyrics.txt", "w+") as f: f.write(f"Search query: \n{artist} - {song}\n\n{songs.lyrics}") await lyric.client.send_file( lyric.chat_id, "lyrics.txt", reply_to=lyric.id, ) os.remove("lyrics.txt") else: await lyric.edit( f"**Search query**: \n`{artist} - {song}`\n\n```{songs.lyrics}```") return CMD_HELP.update({ "lyric": "**Lyric**\ \n\n**Syntax : **`.lyrics <song name>`\ \n**Usage :** this plugin searches for song lyrics with song name. \ \n\n**Syntax : **`.glyrics <artist - song>`\ \n**Usage :** this plugin searches for song lyrics with song name and artist." })
"◻️◻️◻️◻️◻️\n◼️◼️◼️◼️◻️\n◼️◼️◼️◼️◻️\n◼️◼️◼️◼️◻️\n◼️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◼️◼️◼️◼️◻️\n◼️◼️◼️◼️◻️\n◼️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◼️◼️◼️◼️◻️\n◼️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◼️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◼️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◻️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◻️◻️\n◻️◼️◼️◻️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◻️◻️\n◻️◼️◻️◻️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◼️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️\n◻️◻️◻️◻️◻️", "◻️◻️◻️◻️◻️\n◻️◼️◻️◼️◻️\n◻️◻️◻️◻️◻️\n◻️◼️◼️◼️◻️\n◻️◻️◻️◻️◻️", ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 27]) CMD_HELP.update({ "snake": "**Snake**\ \n\n**Syntax : **`.snake`\ \n**Usage :** Creates snake with texts." })