lmao = detect(text) after_tr_text = lmao source_lan = LANGUAGES[after_tr_text] transl_lan = LANGUAGES[lan] output_str = f"""**TRANSLATED SUCCESSFULLY** **Source ({source_lan})**: `{text}` **Translation ({transl_lan})**: `{translated}`""" if len(output_str) >= 4096: out_file = output_str url = "https://del.dog/documents" r = requests.post(url, data=out_file.encode("UTF-8")).json() url2 = f"https://del.dog/{r['key']}" starky = f"Translated Text Was Too Big, Never Mind I Have Pasted It [Here]({url2})" else: starky = output_str await edit_or_reply(event, starky) except Exception as e: print(e) CMD_HELP.update({ "translate": "**Translate**\ \n\n**Syntax : **`.tr <language Code> <reply to text>`\ \n**Usage :** Translates the given text into your language." })
sed += lol + "\n" if count > 13: break count += 1 else: for i in a: tmp = str(i).split(">") if len(tmp) == 3: lol = tmp[1][:-3] sed += lol + "\n" if count > 11: break count += 1 await event.edit( f"<b><u>Below Are Your Movie Recommendations</b></u>\n\n<b>Your Emotion:- <code>{input_str}</code>\n<b>Recommended Movie List:- </b><code>{sed}</code>", parse_mode="HTML", ) CMD_HELP.update({ "movie_recommendation": "**Movie Recommender**\ \n\n**Syntax : **`.rmovie <emotion>`\ \n**Usage :** Recommends Movies According To Your Emotion.\ \n\n**Example : **`.rmovie Sad`\ \nThis above syntax shows recommended mobies for a sad person.\ \n\n**Note : ** Emotions are case sensitive.\ \n\n\n**Available Emotions : ** `Sad`\n`Trust`\n`Fear`\n`Enjoyment`\n`Romantic`\n`Comedy`\n`Anticipation`" })
pm_caption += "➥ **Telethon Version:** `1.15.0` \n" pm_caption += "➥ **Python:** `3.9.0` \n" pm_caption += f"➥ **Uptime** : `{uptime}` \n" pm_caption += "➥ **Database Status:** `Functional`\n" pm_caption += "➥ **Current Branch** : `master`\n" pm_caption += f"➥ **Version** : `{currentversion}`\n" pm_caption += f"➥ **My Boss** : {DEFAULTUSER} \n" pm_caption += "➥ **Heroku Database** : `AWS - Working Properly`\n\n" pm_caption += "➥ **License** : [GNU General Public License v3.0](github.com/inukaasith/virtualuserbot/blob/master/LICENSE)\n" pm_caption += "➥ **Copyright** : By [VirtualUserbot](https://github.com/inukaasith/virtualuserbot)\n" pm_caption += "➥ **Check Stats By Doing** `.stat`. \n\n" pm_caption += "[Contact Dev](https://t.me/inukaasith)" @friday.on(friday_on_cmd(pattern=r"alive")) @friday.on(sudo_cmd(pattern=r"alive", allow_sudo=True)) async def friday(alive): await alive.get_chat() """ For .alive command, check if the bot is running. """ await borg.send_file(alive.chat_id, PM_IMG, caption=pm_caption) await alive.delete() CMD_HELP.update( { "alive": "**ALive**\ \n\n**Syntax : **`.alive`\ \n**Usage :** Check if UserBot is Alive" } )
text = cowmsg.pattern_match.group(2) if arg == "cow": arg = "default" if arg not in cow.COWACTERS: return cheese = cow.get_cow(arg) cheese = cheese() await cowmsg.edit(f"`{cheese.milk(text).replace('`', '´')}`") CMD_HELP.update({ "cow": "**Cow**\ \n\n**Syntax : **`.cowsay <text>`\ \n\n**Syntax : **`.tuxsay <text>`\ \n\n**Syntax : **`.milksay <text>`\ \n\n**Syntax : **`.kisssay <text>`\ \n\n**Syntax : **`.wwwsay <text>`\ \n\n**Syntax : **`.defaultsay <text>`\ \n\n**Syntax : **`.bunnysay <text>`\ \n\n**Syntax : **`.moosesay <text>`\ \n\n**Syntax : **`.sheepsay <text>`\ \n\n**Syntax : **`.rensay <text>`\ \n\n**Syntax : **`.cheesesay <text>`\ \n\n**Syntax : **`.ghostbusterssay <text>`\ \n\n**Syntax : **`.skeletonsay text>`\ \n\n**Usage :** A fun plugin to get ur texts look like its being said by different characters" })
border=4, ) qr.add_data(message) qr.make(fit=True) img = qr.make_image(fill_color="black", back_color="white") img.save("img_file.webp", "PNG") await borg.send_file( event.chat_id, "img_file.webp", caption=message, reply_to=reply_msg_id, progress_callback=progress, ) os.remove("img_file.webp") end = datetime.now() ms = (end - start).seconds await event.edit("Created QRCode in {} seconds".format(ms)) await asyncio.sleep(5) await event.delete() CMD_HELP.update( { "qr_code": "**QR CODE**\ \n\n**Syntax : **`.makeqr <text>`\ \n**Usage :** makes QR code with given text.\ \n\n**Syntax : **`.getqr <reply to qr code>`\ \n**Usage :** Converts QR code into readible text." } )
pop = 0 kok = 1 messi = "" for pop in range(Kk): messi += str(syns[pop].definition()) + "; \n" pop += 1 mil = syns[0].examples() if [] == mil: mil = input_str + "..." await omg.edit( f"<b> meaning of {input_str} is:-</b>\n{messi}.\n\n<b>Example:- </b>\n{mil}", parse_mode="HTML") else: milo = "" for lm in mil: milo += lm + "; \n" await omg.edit( f"<b> meaning of {input_str} is:-</b>\n{messi}\n\n<b>Examples:- </b>\n{milo}", parse_mode="HTML") except: await omg.edit(f"<b> Meaning Not Found</b>", parse_mode="HTML") CMD_HELP.update({ "dictionary": "**Dictionary**\ \n\n**Syntax : **`.meaning <Word>`\ \n**Usage :** Gives meaning of the word." })
Lose:- {pol2} Rank:- {new3} Name:- {nee3} points:- {popo3} Win:- {wein3} Draw:- {yqw3} Lose:- {pol3} """ await borg.send_message( event.chat_id, caption, parse_mode="HTML", file=logo, force_document=False, silent=True, ) await event.delete() CMD_HELP.update({ "football": "**Football**\ \n\n**Syntax : **`.fpl`\ \n**Usage :** Shows Premier League's Standings.\ \n\n**Syntax : **`.ffl`\ \n**Usage :** Shows French Ligue1 Standings.\ \n\n**Syntax : **`.fuefa`\ \n**Usage :** Shows UEFA championship Standings." })
from fridaybot.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." })
@friday.on(admin_cmd(pattern="crypto (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) stark = input_str.split(" ", 1) curreo = stark[0] currency1 = stark[1] curre = curreo.upper() currency = currency1.upper() take = "" take = cryptocompare.get_price(currency, curr=curre) t = take.get(currency) k = curre q = str(t.get(curre)) await event.edit( f"<b><u>Conversion complete</b></u> \n<b>cryptocurrency</b>:- <code>{currency}</code> \n<b>cryptocurrency value in </b> <code>{k}</code> <b> is :- </b> <code> {q}</code>", parse_mode="HTML", ) CMD_HELP.update({ "crypto": "**Cryptocurrency**\ \n\n**Syntax : **`.crypto <currency to give value in> <Cryptocurrency shortname>`\ \n**Usage :** Shows cryptocurrency value in given currency.\ \n\n**Example : **`.crypto inr btc`\ \nThis above syntax gives bitcoin's current value in INR." })
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 = '😎' if not final_emoji: 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." })
"╔═══════════════════╗ \n ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ \n╚═══════════════════╝" ) await asyncio.sleep(1) await event.edit( "╔═══════════════════╗ \n ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ \n╚═══════════════════╝" ) await asyncio.sleep(1) await event.edit( "╔═══════════════════╗ \n ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ \n╚═══════════════════╝" ) await asyncio.sleep(6) CMD_HELP.update({ "animation3": """**Plugin : **`animation3` **Commands in animation4 are ** • `.kilr <text>` • `.eyes` • `.human` • `.mc` • `.virus` • `.repe` • `.nikal` • `.music` • `.squ` **Function : **__Different kinds of animation commands check yourself for their animation .__""" })
#Fixed By a NOOB devent = await event.edit("`Toonifying image 🤪🤣🤓...`") #hehehhehehhe r = requests.post( "https://api.deepai.org/api/toonify", files={ "image": open(media, "rb"), }, headers={"api-key": DARKCOBRA}, ) #By @Danish_00 #Fixed By a NOOB os.remove(media) if "status" in r.json(): return await devent.edit(r.json()["status"]) r_json = r.json()["output_url"] pic_id = r.json()["id"] link = f"https://api.deepai.org/job-view-file/{pic_id}/inputs/image.jpg" result = f"{r_json}" await devent.delete() await borg.send_message( #hehehhehehehehheh event.chat_id, file=result) #hehehehehe CMD_HELP.update({ "toonify": ".toonify <reply to any media where a good face is there> " "\nIt Toonify the face 🤣😂 `(Note :-if its not working then go to deepai.org then get api and set var DEEP_AI nd key.)`" })
downloaded_file_name)) else: await friday.edit("Reply to a file..") url = "https://www.virustotal.com/vtapi/v2/file/scan" params = {"apikey": input_str} files = {"file": (downloaded_file_name, open(downloaded_file_name, "rb"))} response = requests.post(url, files=files, params=params) try: a = response.json() b = a["permalink"] except: await friday.edit("your file is larger than 32 mb.") try: await friday.edit( f"<b><u> File Scan Request Complete</u></b>\n\n<b>Link of the report:-</b>\n{b}\n\nNote:- Please open the link after 5-10 minutes.\n\n<b>Virus Scan Completed By Friday\nGet Your Own Friday From @FRIDAYCHAT</b>", parse_mode="HTML", ) except: await friday.edit("your file is larger than 32 mb. --__--") CMD_HELP.update({ "virustotal": "**VirusTotal**\ \n\n**Syntax : **`.vt <Reply To A File>`\ \n**Usage :** Scans replyed file with virustotal.\ \n**note** :** File should be less than 32 mb." })
pass channel_username = event.text channel_username = channel_username[7:] print(channel_username) await event.edit("Downloading All Media From this Channel.") msgs = await borg.get_messages(channel_username, limit=3000) with open("log.txt", "w") as f: f.write(str(msgs)) for msg in msgs: if msg.media is not None: await borg.download_media(msg, dir) ps = subprocess.Popen(("ls", "temp"), stdout=subprocess.PIPE) output = subprocess.check_output(("wc", "-l"), stdin=ps.stdout) ps.wait() output = str(output) output = output.replace("b'", "") output = output.replace("\n'", "") await event.edit("Downloaded " + output + " files.") CMD_HELP.update( { "channel_download": "**Channel Download**\ \n\n**Syntax : **`.geta <channel username>`\ \n**Usage :** Will get all media from given channel.\ \n\n**Syntax : **`.getc <number of messages> <channel username>`\ \n**Usage :** Downloads given number of messages from given channel." } )
create_task( progress(d, t, v_url, c_time, "Uploading..", f"{ytdl_data['title']}.mp3")), ) os.remove(f"{ytdl_data['id']}.mp3") await v_url.delete() elif video: await friday.edit(f"`Preparing to upload video:`\ \n**{ytdl_data['title']}**\ \nby *{ytdl_data['uploader']}*") await v_url.client.send_file( v_url.chat_id, f"{ytdl_data['id']}.mp4", supports_streaming=True, caption=ytdl_data["title"], progress_callback=lambda d, t: asyncio.get_event_loop(). create_task( progress(d, t, v_url, c_time, "Uploading..", f"{ytdl_data['title']}.mp4")), ) os.remove(f"{ytdl_data['id']}.mp4") await v_url.delete() CMD_HELP.update({ "ytdl": "**Ytdl**\ \n\n**Syntax : **`.yta <song link> OR .ytv <video link>`\ \n**Usage :** download songs or videos from YouTube just with a link" })
@register(outgoing=True, pattern="^.sleep( [0-9]+)?$") async def sleepybot(time): """ For .sleep command, let the fridaybot snooze for a few second. """ message = time.text if not message[0].isalpha() and message[0] not in ("/", "#", "@", "!"): if " " not in time.pattern_match.group(1): await time.reply("Syntax: `.sleep [seconds]`") else: counter = int(time.pattern_match.group(1)) await time.edit("`I am sulking and snoozing....`") sleep(2) if LOGGER: await time.client.send_message( LOGGER_GROUP, "You put the bot to sleep for " + str(counter) + " seconds", ) sleep(counter) CMD_HELP.update({ "misc": "**Misc**\ \n\n**Syntax : **`.random <mention text or numbers>`\ \n**Usage :** This plugin picks random text or number from given texts or numbers.\ \n\n**Syntax : **`.sleep <time in seconds>`\ \n**Usage :** Bot sleeps for given time." })
return input_str = event.pattern_match.group(1) IFSC_Code = input_str URL = "https://ifsc.razorpay.com/" data = requests.get(URL + IFSC_Code).json() a = data["ADDRESS"] b = data["CENTRE"] c = data["BRANCH"] d = data["CITY"] e = data["STATE"] f = data["BANK"] g = data["BANKCODE"] h = data["IFSC"] await event.edit( f"<b><u>INFORMATION GATHERED SUCCESSFULLY</b></u>\n\n<b>Bank Name :-</b><code>{f}</code>\n<b>Bank Address:- </b> <code>{a}</code>\n<b>Centre :-</b><code>{b}</code>\n<b>Branch :- </b><code>{c}</code>\n<b> City :-</b><code>{d}</code>\n<b>State:- </b> <code>{e}</code>\n<b>Bank Code :- </b><code>{g}</code>\n<b>Ifsc :-</b><code>{h}</code>", parse_mode="HTML", ) CMD_HELP.update({ "ifsc": "**IFSC**\ \n\n**Syntax : **`.ifsc <IFSC code>`\ \n**Usage :** gives you details about the bank." })
except FloodWaitError as ex: logger.warning(str(e)) await asyncio.sleep(ex.seconds) # else: # logger.info(r.stringify()) # await borg.send_message( # pylint:disable=E0602 # Config.PRIVATE_GROUP_BOT_API_ID, # pylint:disable=E0602 # "Successfully Changed Profile Name" # ) await asyncio.sleep(DEL_TIME_OUT) await sed.edit(f"Auto Name has been started my Master") CMD_HELP.update( { "autoname": "**Autoname**\ \n\n**Syntax : **`.autoname`\ \n**Usage :** Change your Name With Time" } )
@friday.on(friday_on_cmd("rmblacklist ((.|\n)*)")) @friday.on(sudo_cmd("rmblacklist ((.|\n)*)", allow_sudo=True)) async def on_delete_blacklist(event): if event.fwd_from: return sensibleisleecher = await edit_or_reply(event, "Ok Removing This Blacklist xD") text = event.pattern_match.group(1) to_unblacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) successful = 0 for trigger in to_unblacklist: if sql.rm_from_blacklist(event.chat_id, trigger.lower()): successful += 1 await sensibleisleecher.edit( f"Removed {successful} / {len(to_unblacklist)} from the blacklist") CMD_HELP.update({ "blacklist": "**Blacklist**\ \n\n**Syntax : **`.textblacklist <text to blacklist>`\ \n**Usage :** Mentioned text is blacklisted in current chat.\ \n\n**Syntax : **`.listblacklist`\ \n**Usage :** Blacklisted text is shown.\ \n\n**Syntax : **`.rmblacklist <text to remove from blacklist>`\ \n**Usage :** Mentioned text is removed from blacklist." })
lim = lim[0] lim = lim.replace("lim=", "") query = query.replace("lim=" + lim[0], "") except IndexError: lim = 5 response = googleimagesdownload() # creating list of arguments arguments = { "keywords": query, "limit": lim, "format": "jpg", "no_directory": "no_directory", } # passing the arguments to the function paths = response.download(arguments) lst = paths[0][query] await event.client.send_file( await event.client.get_input_entity(event.chat_id), lst ) shutil.rmtree(os.path.dirname(os.path.abspath(lst[0]))) await event.delete() CMD_HELP.update( { "img": "**Img**\ \n\n**Syntax : **`.img <query>`\ \n**Usage :** get images just with a query" } )
urllib.request.urlretrieve(fy, "friday.jpg") @friday.on(friday_on_cmd(pattern="spacedp ?(.*)")) async def main(event): await event.edit( "**Starting Space Profile Pic...\n\nDone !!! Check Your DP" ) # Owner MarioDevs while True: await animepp() file = await event.client.upload_file("donottouch.jpg") await event.client(functions.photos.UploadProfilePhotoRequest(file)) os.system("rm -rf donottouch.jpg") await asyncio.sleep(3600) # Edit this to your required needs CMD_HELP.update({ "spacedp": "**Space Dp**\ \n\n**Syntax : **`.spacedp`\ \n**Usage :** uploades new space picture as your profile pic." })
DocumentAttributeFilename(file_name="AnimatedSticker.tgs") in reply_message.media.document.attributes ): return False if ( reply_message.gif or reply_message.video or reply_message.audio or reply_message.voice ): return False data = reply_message.media.document else: return False else: return False if not data or data is None: return False else: return data CMD_HELP.update( { "deepfryer": "**Deepfryer**\ \n\n**Syntax : **`.deepfry <reply to image>`\ \n**Usage :** This plugin deepfries the given image." } )
"Friday Has Installed `{}` Sucessfully.".format( os.path.basename(downloaded_file_name) ) ) else: os.remove(downloaded_file_name) await event.edit( "Errors! This plugin is already installed/pre-installed." ) except Exception as e: # pylint:disable=C0103,W0703 await event.edit( f"Error While Installing This Plugin, Please Make Sure That its py Extension. \n**ERROR :** {e}" ) os.remove(downloaded_file_name) await asyncio.sleep(DELETE_TIMEOUT) await event.delete() @borg.on(friday_on_cmd(pattern='pl ?(.*)')) async def _(event): lul = event.pattern_match.group(1) yesm, nope, total_p = await get_all_modules(event, borg, lul) await event.edit(f"Installed {yesm} PLugins. Failed To Install {nope} Plugins And There Were Total {total_p} Plugins") CMD_HELP.update( { "install": "**Install**\ \n\n**Syntax : **`.install <reply to plugin>`\ \n**Usage :** it installs replyed plugin" } )
@friday.on(friday_on_cmd(pattern="combogen")) async def byekanger(event): url = "http://devsexpo.me/combogen/" sed = requests.get(url=url).json() sedjson = f"""<b>ComBo Generated</b> <b>Email :</b> <code>{sed['email']}</code> <b>Password :</b> <code>{sed['pass']}</code> <b>Combo :</b> <code>{sed['combo']}</code> """ await event.edit(sedjson, parse_mode="HTML") 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." })
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." } )
events.NewMessage(incoming=True, from_users=185693644) ) await borg.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await event.reply("```Please unblock @UrbanDictionaryBot and try again```") return if response.text.startswith("Hello,"): await event.edit( "```can you kindly disable your forward privacy settings for good?```" ) else: await event.edit(f"{response.message.message}") CMD_HELP.update( { "sangmata": "**Sangmata**\ \n\n**Syntax : **`.sg <reply to someone's message>`\ \n**Usage :** gets name history of the person.\ \n\n**Syntax : **`.fakemail <reply to someone's message>`\ \n**Usage :** Gets you fake email to use.\ \n\n**Syntax : **`.ub <reply to a link>`\ \n**Usage :** Download from given link and uploades in telegram.\ \n\n**Syntax : **`.gid <reply to someone's message>`\ \n**Usage :** gets id and info of the person.\ \n\n**Syntax : **`.urban <reply to text>`\ \n**Usage :** Gets you meaning of replyed text." } )
if not event.reply_to_msg_id: await event.edit("Reply to any Pdf File.") return hmmu = await event.edit("hmm... Please Wait...🚶") lol = await event.get_reply_message() starky = await borg.download_media(lol.media, Config.TMP_DOWNLOAD_DIRECTORY) hmmu = await event.edit("hmm... Please Wait..") pdf_file = starky docx_file = './fridaybot/DOWNLOADS/FRIDAYOT.docx' parse(pdf_file, docx_file, start=0, end=None) await borg.send_file( event.chat_id, docx_file, caption= f"*PDF Converted Into Docx by Friday bot. Get your Friday From @FRIDAYOT." ) os.remove(pdf_file) os.remove(docx_file) await event.delete() CMD_HELP.update({ "fileTools": "**File Tools**\ \n\n**Syntax : **`.pdf2docx <reply to pdf>`\ \n**Usage :** Converts Given Pdf Into Docx.\ \n\n**Syntax : **`.p2dcl <channel username>`\ \n**Usage :** Converts All The Pdf's From Channel Into Docx." })
entity=channel_id, filter=InputMessagesFilterDocument, # this might cause FLOOD WAIT, # if used too many times limit=None, search=search_kw, ) # get a random font from the list of fonts # https://docs.python.org/3/library/random.html#random.choice font_file_message = random.choice(font_file_message_s) # download and return the file path return await client.download_media(font_file_message) # EMOJI_PATTERN = re.compile( # """Remove emojis and other non-safe characters from string""" # return re.sub(EMOJI_PATTERN, '', inputString) # def deEmojify(inputString: str) -> str: # """Remove emojis and other non-safe characters from string""" # return re.sub(EMOJI_PATTERN, '', inputString) CMD_HELP.update( { "stickcreate": "**Sticker Creator**\ \n\n**Syntax : **`.stcr <text>`\ \n**Usage :** Creates sticker with given text." } )
Get Your Friday From</b></u> @FridayOT. """ await event.delete() await borg.send_message( event.chat_id, message, parse_mode="HTML", file=image, force_document=False, silent=True, ) os.remove(downloaded_file_name) except: if xo.get("success") is False: errer = xo.get("error") ommhg = await edit_or_reply(event, errer) os.remove(downloaded_file_name) return ommhg = await edit_or_reply( event, "Song Not Found IN Database. Please Try Again.") os.remove(downloaded_file_name) return CMD_HELP.update({ "shazam": "**Shazam**\ \n\n**Syntax : **`.shazam <replying to the song>`\ \n**Usage :** Identifies The Song." })
if starky and os.path.exists(starky): os.remove(starky) CMD_HELP.update({ "imagetools": "**imagetools**\ \n\n**Syntax : **`.cit`\ \n**Usage :** colourizes the given picture.\ \n\n**Syntax : **`.nst`\ \n**Usage :** removes colours from image.\ \n\n**Syntax : **`.tni`\ \n**Usage :** Toonify the image.\ \n\n**Syntax : ** `.thug`\ \n**Usage :** makes a thug life meme image.\ \n\n**Syntax : ** `.tig`\ \n**Usage :** Makes a triggered gif of the replied image.\ \n\n**Syntax : ** `.spin <number between 1-6>`\ \n**Usage :** Spins The Given Image.\ \n\n**Syntax : ** `.jail`\ \n**Usage :** Makes a jail image of the replied image.\ \n\n**Syntax : ** `.fgs searchtext;fake text`\ \n**Usage :** Makes a Fake Google Search Image.\ \n\n**Syntax : ** `.ph username:fake text`\ \n**Usage :** Makes a Fake PornHub comment with given username and text.\ \n\n**Syntax : ** `.greyscale`\ \n**Usage :** Makes a black and white image of the replied image.\ \n\n**Syntax : ** `.lnews <text>`\ \n**Usage :** Makes a Fake News Streaming With Replyed Image And Text." })