os.remove(a) await event.delete() except Exception as e: await event.edit(str(e)) elif os.path.exists(thumb_image_path): caption_str = "Currently Saved Thumbnail" await event.client.send_file( event.chat_id, thumb_image_path, caption=caption_str, force_document=False, allow_cache=False, reply_to=event.message.id, ) await event.edit(caption_str) else: await event.edit("Reply `.gethumbnail` as a reply to a media") CMD_HELP.update({ "thumbnail": "**Plugin :** `thumbnail`\ \n\n**Syntax :** `.savethumb`\ \n**Usage : **Reply to file or video to save it as temporary thumbimage\ \n\n**Syntax : **`.clearthumb`\ \n**Usage : **To clear Thumbnail no longer you uploads uses custom thumbanail\ \n\n**Syntax : **`.getthumb`\ \n**Usage : **To get thumbnail of given video or gives your present thumbnail\ " })
start = datetime.now() await event.client.send_file( # pylint:disable=E0602 event.chat_id, the_plugin_file, force_document=True, allow_cache=False, reply_to=message_id ) end = datetime.now() time_taken_in_ms = (end - start).seconds await event.edit("Uploaded {} in {} seconds".format(input_str, time_taken_in_ms)) await asyncio.sleep(DELETE_TIMEOUT) await event.delete() CMD_HELP.update({ "install": "`!sqlsend <sql_helpername>`\ \n**Usage:** send the sql helper\ \n\n``\ \n****\ " })
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({ "cloneuser": "******" })
await rkp.delete() CMD_HELP.update({ "tools": "`!reupload <customname>`\ \n**Usage:** Reply to a media / video / photo to reupload with your custom name\ \n\n`!search <keyword>`\ \n**Usage:** Search given keyword in group and give results\ \n\n`!stats `\ \n**Usage:** Command to get stats about your account\ \n\n`!carbon <text>`\ \n**Usage:** Beautify your text\ \n\n`!inviteall <chatusername/chatid>`\ \n**Usage:** Invite all the members to current chat from given group/channel\ \n\n`!tagall`\ \n**Usage:** Tag all people in group\ \n\n`!tts2 <text> (or reply) **or** `!tts` <langcode> <reply to a media>`\ \n**Usage:** Translates text to speech for the language which is set.\n`!lang tts <language code>` to set language for trt. (Default is English)\ \n\n`!trt <text> (or reply)` \ \n**Usage:** Translates text to the language which is set..\n`!lang trt <language code>` to set language for trt. (Default is English)\ \n\n`!get video <url> or get audio <url>`\ \n**Usage:** Download video or audio from YouTube , facebook, Yahoo , [many other sites](https://ytdl-org.github.io/youtube-dl/supportedsites.html)\ \n\n`!time <country name/code> <timezone number>`\ \n**Usage:** Get the time of a country. If a country has multiple timezones it will list all of them and let you select one.\ \n\n`!date <country name/code> <timezone number>`\ \n**Usage:** Get the date of a country. \ \n\n**All Commands Support Sudo type !help sudo fore more info**\ " })
if state == "up": await dyno.respond(f"**{HEROKU_APP_NAME}** `restarted...`") elif state == "crashed": await dyno.respond(f"**{HEROKU_APP_NAME}** `crashed...`") return await dyno.delete() CMD_HELP.update({ "heroku": "** heroku apikey, name must set correctly for use this commands get help from https://telegra.ph/RkPavi-06-09-6** " "\n\n`!usage`" "\nUsage: Check your heroku dyno hours remaining" "\n\n`!set var <NEW VAR> <VALUE>`" "\nUsage: add new variable or update existing value variable" "\nAfter setting a variable the bot will restarted" "\n\n`!get var or !get var <VAR>`" "\nUsage: get your existing varibles, use it only on your private group!" "\nThis returns all of your private information, please be caution..." "\n\n`!del var <VAR>`" "\nUsage: delete existing variable" "\n After deleting variable the bot will restarted" "\n\n`!logs <VAR>`" "\nUsage: get herolu logs" "\n\n`!restart <VAR>`" "\nUsage: Restart Dynos" "\n\n`!shutdown <VAR>`" "\nUsage: off dynos, It will shutdown your javes" "\n\n**Sudo commands type !help sudo for more info **" "\n.restart , .shutdown , .logs , .set/get/del var , .usage" })
] process = await asyncio.create_subprocess_exec( *file_genertor_command, # stdout must a pipe to be accessible as process.stdout stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, ) # Wait for the subprocess to finish await process.communicate() if os.path.lexists(out_put_file_name): return out_put_file_name return None CMD_HELP.update( { "ffmpeg": "**Plugin : **`ffmpeg`\ \n\n • **Syntax : **`.ffmpegsave`\ \n • **Function : **__Saves the media file in bot to trim mutliple times__\ \n\n • **Syntax : **`.vtrim time`\ \n • **Function : **__Sends you the screenshot of the video at the given specific time__\ \n\n • **Syntax : **`.vtrim starttime endtime`\ \n • **Function : **__Trims the saved media with specific given time internval and outputs as video__\ \n\n • **Syntax : **`.atrim starttime endtime`\ \n • **Function : **__Trims the saved media with specific given time internval and outputs as audio__\ \n\n • **Syntax : **`.ffmpegclear`\ \n • **Function : **__Deletes the saved media so you can save new one__\ " } )
results["best_guess"] = best_guess.get_text() 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 counter <= int(lim): imglinks.append(imglink) else: break return imglinks CMD_HELP.update({ "google": "**Plugin :**`google`\ \n\n**Syntax :** `.gs <limit> <query>` or `.gs <limit> (replied message)`\ \n**Function : **will google search and sends you top 10 results links.\ \n\n**Syntax :** `.grs` reply to image\ \n**Function : **will google reverse search the image and shows you the result.\ \n\n**Syntax : **`.reverse limit`\ \n**Function : **Reply to a pic/sticker to revers-search it on Google Images !!" })
CMD_HELP.update({ "tools2": "`!telegraph media / text <reply to a media / message >`\ \n**Usage:** Upload text & media on Telegraph\ \n\n`!figlet `<text.style>\ \n**Usage:** [Enhance ur text Styles Click Me to get Available stiles](https://telegra.ph/%E2%84%B9-12-31)\ \n\n`!docpic `<reply to a img>\ \n**Usage:** Convert any Document Image to Full Size Image.\ \n\n`!ifsc` <code>\ \n**Usage:** Find bank details through ifsc code.\ \n\n`!zip `<Reply to a media>\ \n**Usage:** make files to zip..\ \n\n`!unzip` <reply to a media>\ \n**Usage:** upload zip list.!!\ \n\n`!dns `<link>\ \n**Usage:** give dns records .\ \n\n`!urlshort` <link>\ \n**Usage:** shorten url.\ \n\n`!urldirect` <link>\ \n**Usage:** get direct url from shorten url.\ \n\n`!git` <account name>\ \n**Usage:** get github account information.\ \n\n`!create g` <name>\ \n**Usage:** Create a Private super Group .\ \n\n`!create b` < name>\ \n**Usage:** Create a Group with Bot.\ \n\n`!create c` <name>\ \n**Usage:** Create a Channel..\ \n\n`!poll` <reply to a poll>\ \n**Usage:** Get poll details..\ \n\n**All commands support sudo , type !help sudo for more info**\ " })
downloaded_file_name = await event.client.download_media( await client.get_messages(chat, ids=mxo), "ub/modules/") if "(" not in downloaded_file_name: path1 = Path(downloaded_file_name) shortname = path1.stem if (os.path.basename(downloaded_file_name)).endswith('.py'): try: load_module(shortname.replace(".py", "")) text += f"**• Installed** {(os.path.basename(downloaded_file_name))}\n" except: text += f"**× Failed to install** {(os.path.basename(downloaded_file_name))}\n" os.remove(downloaded_file_name) pass else: text += f"** Skiped** {(os.path.basename(downloaded_file_name))}\n" os.remove(downloaded_file_name) else: text += f"** Skiped** {(os.path.basename(downloaded_file_name))}\n" os.remove(downloaded_file_name) return await event.edit(f"{text}\n\n**Install completed**") CMD_HELP.update({ "install": "`!install <reply to a plugin>`\ \n**Usage:** Install the plugin\ \n\n`!installall <channel/group username>`\ \n**Usage:**Install all plugins from the channel or group\ " })
@javes.on(rekcah05(pattern=f"base64 (en|de) (.*)", allow_sudo=True)) async def endecrypt(query): if query.pattern_match.group(1) == "en": lething = str( pybase64.b64encode(bytes(query.pattern_match.group(2), "utf-8")))[2:] await query.reply("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({ "script": "!term\ \nUsage: run shell command in javes, Javes's os is alpine so use apline commands like !term apk add < packges>\ \n\n!exec \ \nUsage: run python command in javes. like !exec print ('hello')\ \n\n!eval\ \nUsage: Evalute mini-expressions. like !eval 1+1\ \n\n!hash\ \nUsage: find the md5, sha1, sha256, sha512 of the string.\ \n\n!base64 en/de\ \nUsage: find the base64 encode/decode the given string. like !base64 en hello\ \n\n**Sodo commands ( type !help sudo for more info)**\ \n .term , .exec , .eval, .base64 en/de , .hash\ " })
@javes.on(rekcah05(pattern=f"clearwelcome$", allow_sudo=True)) async def del_welcome(event): try: from ub.modules.sql_helper.welcome_sql import rm_welcome_setting except AttributeError: await event.reply("`Running on Non-SQL mode!`") return if rm_welcome_setting(event.chat_id) is True: await event.reply( f"`{JAVES_NNAME}`: **Welcome note deleted for this chat.**") else: await event.reply( f"`{JAVES_NNAME}`: ** I Didnt have any welcome messages here **") CMD_HELP.update({ "welcome": "\ !savewelcome <welcome message> or reply to a message with !savewelcome\ \nUsage: Saves the message as a welcome note in the chat.\ \n\nAvailable variables for formatting welcome messages :\ \n`{mention}, {title}, {count}, {first}, {last}, {fullname}, {userid}, {username}, {my_first}, {my_fullname}, {my_last}, {my_mention}, {my_username}`\ \n\n!checkwelcome\ \nUsage: Check whether you have a welcome note in the chat.\ \n\n!clearwelcome\ \nUsage: Deletes the welcome note for the current chat.\ \n\n**Sudo commands type !help sudo for more info **\ \n.savewelcome , .checkwelcome , .clearwelcome.\ " })
CMD_HELP.update({ "memify0": "**Plugin : **`memify0`\ \n\n • **Syntax :** `.mmf toptext ; bottomtext`\ \n • **Function : **Creates a image meme with give text at specific locations and sends\ \n\n • **Syntax : **`.mms toptext ; bottomtext`\ \n • **Function : **Creates a sticker meme with give text at specific locations and sends\ \n\n • **Syntax : **`.cfont` <Font Name>\ \n • **Function : **Change the font style use for memify,\nTo get fonts name use this cmd (`!term ls ub/helpers/styles`)\ \n\n • **Syntax : **`.asci`\ \n • **Function : **reply to media file to get ascii image of that media\ \n\n • **Syntax : **`.envert`\ \n • **Function : **Inverts the colors in media file\ \n\n • **Syntax : **`.solr`\ \n • **Function : **Watch sun buring ur media file\ \n\n • **Syntax : **`.mirror`\ \n • **Function : **shows you the reflection of the media file\ \n\n • **Syntax : **`.flip`\ \n • **Function : **shows you the upside down image of the given media file\ \n\n • **Syntax : **`.gray`\ \n • **Function : **makes your media file to black and white\ \n\n • **Syntax : **`.zoom` or `.zoom range`\ \n • **Function : **zooms your media file\ \n\n • **Syntax : **`.frame` or `.frame range` or `.frame range ; fill`\ \n • **Function : **make a frame for your media file\ \n • **fill:** This defines the pixel fill value or color value to be applied. The default value is 0 which means the color is black.\ " })
) # 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.TAG_LOG, # 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) (link of any media) or reply to it " "\nUsage mention u as afk with cool media when someone tag or reply to any of ur msg or dm." })
f"`{JAVES_NNAME}:` **Requesting to ungban user!\nunGbanned {a} chats.....**" ) except: b += 1 else: await rkp.edit(f"`{JAVES_NNAME}:` **Reply to a user !! **") try: if ungmute(user.id) is False: return await rkp.edit( f"`{JAVES_NNAME}:`**Error! User probably already ungbanned.**") except: pass return await rkp.edit( f"`{JAVES_NNAME}:` **UnGbanned [{user.first_name}](tg://user?id={user.id}) in {a} chat(s) , UnBlocked and removed user from Gban watch **" ) CMD_HELP.update({ "gban-gmute": "!gban <username> / <userid> / <reply to a user>\ \n**Usage**: Globel ban the person in all groups, channels , block in pm , add gban watch (use with solution) \ \n\n!ungban <username> / <userid> / <reply to a user>\ \n**Usage**: unban user from all groups, channels , remove user from gban watch.\ \n\n!gmute <username> / <userid> / <reply to a user>\ \n**Usage**: Globel mute the user \ \n\n!ungmute <username> / <userid> / <reply to a user>\ \n**Usage**: Remove user form gmute list \ \n\n**All commands support sudo**\ " })
glitch_img = glitcher.glitch_image( img, 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." })
# ported from telebot from ub import CMD_HELP from ub.utils import admin_cmd from ub import bot as borg @borg.on(admin_cmd(pattern="pmto ?(.*)")) async def pmto(event): a = event.pattern_match.group(1) b = a.split(" ") chat_id = b[0] try: chat_id = int(chat_id) except BaseException: pass msg = "" for i in b[1:]: msg += i + " " if msg == "": return try: await borg.send_message(chat_id, msg) await event.edit("Message sent!") except BaseException: await event.edit("Something went wrong.") CMD_HELP.update({"pmto": ".pmto <username> <message>"})
chat = "@NovelCoronaBot" rk = await event.reply("```Processing...```") async with event.client.conversation(chat) as conv: try: response = conv.wait_event( events.NewMessage(incoming=True, from_users=1124136160)) await event.client.send_message(chat, "{}".format(input_str)) response = await response except YouBlockedUserError: await rk.reply("```please unlock @NovelCoronaBot```") return if response.text.startswith("Country"): await rk.edit("`Invalid Country name`") else: await event.delete() await event.client.send_message(event.chat_id, response.message) CMD_HELP.update({ "covid": "!corona\ \nUsage: slap the taged user\ \n\n!covid <country>\ \nUsage: Get an information about data covid-19 in your country..\ \n\n!covid2 <country>\ \nUsage: same like !covid \ \n\nSudo Commands ( type !help sudo for more info)\ \n.covid , .covid2 , .corona \ " })
from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from ub import CMD_HELP, bot from ub.events import javes05, admin_cmd @javes05(outgoing=True, pattern="^\!report") async def _(event): if event.fwd_from: return mentions = "Reported to @admin" chat = await event.get_input_chat() async for x in bot.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"[\u2063](tg://user?id={x.id})" reply_message = None if event.reply_to_msg_id: reply_message = await event.get_reply_message() await reply_message.reply(mentions) else: await event.reply(mentions) await event.delete() CMD_HELP.update({ "report": "\ !report\ \nUsage: Reply to a message to report it to group admins " })
await conv.send_message(rksong) song2 = await conv.get_response() return await rkp.edit(f"**{JAVES_NNAME}**: {song2.message}") except : return await event.reply("Please unblock @DrWebBot and try again") CMD_HELP.update({ "virus_scan": "`!scan <file path>`\ \n**Example:** `!scan reply to a file` \ \n**Usage:** Scan file in https://www.virustotal.com/gui/\ \n\n`!scan2 <reply to a message>`\ \n**Usage:** scan the file\ \n`!uscan <url>`\ \n**Usage:** scan the url\ \n\n**All Commands Support Sudo type !help sudo fore more info**\ " })
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 makeqr.client.send_file(makeqr.chat_id, "img_file.webp", reply_to=reply_msg_id) os.remove("img_file.webp") #await makeqr.delete() CMD_HELP.update({ "qrcode-barcode": "!qrcode <text>\ \nUsage: Make a QR Code from the given text \ \n\n!barcode <content> \ \nUsage: Make a BarCode from the given text.\ \n\n!decodeqr<reply to barcode/qrcode> \ \nUsage: decode the given qr/bar code\ \n\nSudo commands ( type !help sudo for more info)\ \n.barcode , .qrcode , .decodeqr \ " })
CMD_HELP.update({ "search": "`!song < song name>`\ \n**Usage:** Find & send given song \ \n\n`!song2 < song name>` \ \n**Usage:** find & send song from world wide .\ \n\n`!vsong < song name>` \ \n**Usage:** Send video song.\ \n\n`!movie < movie name>` \ \n**Usage:** Shows movie info .\ \n\n`!mean <word>` \ \n**Usage:** Give meaning of text.\ \n\n`!ud < word>` \ \n**Usage:** Does a search on Urban Dictionary.\ \n\n`!wiki <word>` \ \n**Usage:** Does a search on Wikipedia..\ \n\n`!google < ward>` \ \n**Usage:** Does a search on Google.\ \n\n`!img < ward> / !img <ward> max10` \ \n**Usage:** Does an image search on Google and shows .\ \n\n`!reverse < reply to a photo/sticker> ` \ \n**Usage:**Revers-search given img on Google and send similar images!!\ \n\n`!currency <amount> <from> <to> ` \ \n**Usage:** Converts various currencies like` !currency 1 usd inr`.\ \n\n`!app <name>` \ \n**Usage:** Shows app info .\ \n\n`!magisk` \ \n**Usage:** Shows latest magisk .\ \n\n`!specs <brand> <device>` \ \n**Usage:** Shows device specs.\ \n\n`!ggl <word>` \ \n**Usage:** Shows How to search google.\ \n\n**All commands support Sudo , type !help sudo for more info**\ " })
if admin or creator: await client.edit_permissions(rkG.chat_id, guser.id, view_messages=False) return await rkG.reply( f"`{JAVES_NNAME}:` ** User left the group and permanently banned!!** \n" f"`Victim Id`: **[{guser.id}](tg://user?id={guser.id})**") CMD_HELP.update({ "extra": "!set var EP True\ \n**Usage:** If any user edited any message in your pm bot will shoutout\ \n\n!del var EP \ \n**Usage:** Off EP\ \n\n!set var EG True\ \n**Usage:** If any user edited message in groups bot will shouout \ \n\n!delvar EG\ \n**Usage:** off EG \ \n\n!set var DG True\ \n**Usage:** If any user deleted his message in group bot will shouout \ \n\n!del var DG \ \n**Usage:** Off DG \ \n\n!set var LG True\ \n**Usage:** If any one leave your group javes auto ban him permanently \ \n\n!del var LG \ \n**Usage:** Off LG \ \n\nAll commands Support if you active full sudo ( type !help sudo for more info)\ " })
) #By @Danish_00 #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.)" })
file=new_required_file_name, allow_cache=False, silent=True, force_document=force_document, voice_note=voice_note, supports_streaming=supports_streaming, progress_callback=lambda d, t: asyncio.get_event_loop(). create_task(progress(d, t, event, c_time, "trying to upload")), ) os.remove(new_required_file_name) await event.delete() CMD_HELP.update({ "fileconverter": "**Plugin : **`fileconverter`\ \n\n**Syntax : **`.stoi` reply to sticker\ \n**Usage :**Converts sticker to image\ \n\n**Syntax : **`.itos` reply to image\ \n**Usage :**Converts image to sticker\ \n\n**Syntax :** `.ftoi` reply to image file\ \n**Usage :** Converts Given image file to straemable form\ \n\n**Syntax :** `.gif` reply to animated sticker\ \n**Usage :** Converts Given animated sticker to gif\ \n\n**Syntax :** `.doc file name` reply to text message\ \n**Usage :** Converts Given text message to required file(given file name)\ \n\n**Syntax :**`.nfc voice` or `.nfc mp3` reply to required media to extract voice/mp3 :\ \n**Usage :**Converts the required media file to voice or mp3 file.\ " })
return await e.reply(f"**Error**\nusage `!dealyspam <time in seconds> <count> <text>`") CMD_HELP.update({ "spam": "⚠️ Spam at your own risk !!\ \n\n`!spam/!sp` <count> <text>\ \n**Usage:** Floods text in the chat !!\ \n\n`!scam/!sc` <time in seconds> <action>\ \n**Usage:** Scam by fake actions like typing, sending photo......!!\ \n\n`!cspam/!csp` <text>\ \n**Usage:** Spam the text letter by letter.\ \n\n`!rspam/!rsp` <count> <text>\ \n**Usage:** Repeats the text for a number of times.\ \n\n`!wspam/!wsp` <text>\ \n**Usage:** Spam the text word by word.\ \n\n`!mspam/!msp` <count> <reply to a media message>\ \n**Usage:** As if text spam was not enough !!\ \n\n`!delayspam/!dsp` <delay> <count> <text>\ \n**Usage:** spam with custom delay.\ \n\n`!dmspam/!dmsp` <delay> <count> <reply to a media message>\ \n**Usage:** mspam with custom delay.\ \n\n**Spam_protect**\ \n**Usage:** Protect your groups from scammers.\ \nFor on `!set var SPAM_PROTECT True` , for off `!del var SPAM_PROTECT`\ \n You need to set up api key for that\ \n More information click [here](https://t.me/javes05/157)\ \n\n**All commands support sudo , type !help sudo for more info**\ " })
except: arg = args emoji = "😺" '''if not char_is_emoji(emoji): arg = args emoji = "😺"''' result = "" for a in arg: a = a.lower() if a in emojify.kakashitext: char = emojify.itachiemoji[emojify.kakashitext.index(a)].format( cj=emoji) result += char else: result += a await event.edit(result) '''def char_is_emoji(character): return character in emoji.UNICODE_EMOJI''' CMD_HELP.update({ "emojify": "**Plugin :** `emojify`\ \n\n**Syntax :** `.eem` <text>\ \n****Usage : **Converts your text to big emoji text, with default emoji. \ \n\n**Syntax :** `.cmoji` <text>;<emoji>\ \n****Usage : **Converts your text to big emoji text, with your custom emoji.\ " })
await event.delete() linc = event.text links=linc[6:] text1,colors1,text2,colors2=links.split("|") a,b,c=colors1.split(";") d,e,f=colors2.split(";") window_name = 'Made By Shivam' image = cv2.imread("google.jpg") font = cv2.FONT_HERSHEY_SIMPLEX org1 = (255,65) org2 = (450,280) color1 = (int(a),int(b),int(c)) color2 = (int(d),int(e),int(f)) thickness=2 fontScale=1 image = cv2.putText(image, text1, org1, font, fontScale, color1, thickness, cv2.LINE_AA) cv2.imwrite("s_h_1_v_a_m_s.jpg", image) image = cv2.imread("s_h_1_v_a_m_s.jpg") image = cv2.putText(image, text2, org2, font, fontScale, color2, thickness, cv2.LINE_AA) #image=cv2.imshow(window_name, image) cv2.imwrite("s_h_1_v_a_m.jpg", image) #await borg.send_file(event.chat_id,"s_h_i_v_a_m.png") #await event.client.send_file(event.chat_id, "s_h_i_v_a_m.png", force_document=True, reply_to=event.reply_to_msg_id) await event.client.send_file(event.chat_id, "s_h_1_v_a_m.jpg", force_document=False, reply_to=event.reply_to_msg_id) os.remove("s_h_1_v_a_m.jpg") os.remove("s_h_1_v_a_m_s.jpg") CMD_HELP.update({"fakegooglesearch":"\n\n.gpic text1|no1;no2;no3|text2 \n\n.fpic text1|no1;no2;no3|text2|no1;no2;no3"}) #MADE BY SHIVAM DONT KANG#MADE BY SHIVAM DONT KANG#MADE BY SHIVAM DONT KANG#MADE BY SHIVAM DONT KANG#MADE BY SHIVAM DONT KANG
else: await catmemmes.edit("the replied file is not supported") os.remove(download_location) return try: response = upload_file(download_location) os.remove(download_location) except exceptions.TelegraphException as exc: await catmemmes.edit("ERROR: " + str(exc)) os.remove(download_location) return cat = f"https://telegra.ph{response[0]}" cat = await phcomment(cat, text, username) await catmemmes.delete() await catmemes.client.send_file(catmemes.chat_id, cat, reply_to=replied) CMD_HELP.update({ "trolls": "__**PLUGIN NAME :** TROLLS__\ \n\n📌** CMD ➥** `.threats` reply to image or sticker \ \n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is threat to society as that of nuclear bomb .\ \n\n📌** CMD ➥** `.trash` reply to image or sticker\ \n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is as equal as to trash(waste)\ \n\n📌** CMD ➥** Reply to image or sticker with `.trap (name of the person to trap)|(trapper name)`\ \n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is trapped in trap card\ \n\n📌** CMD ➥** Reply to image or sticker with `.phub (username)|(text in comment)`\ \n**USAGE ➥ **Changes the given pic to another pic which shows that pic content as dp and shows a comment in phub with the given username\ " })
import os from ub import CMD_HELP from ub.utils import admin_cmd from ub import bot as borg @borg.on(admin_cmd(pattern=r"reveal", outgoing=True)) async def _(event): b = await event.client.download_media(await event.get_reply_message()) a = open(b, "r") c = a.read() a.close() a = await event.reply("Reading file...") if len(c) > 4095: await a.edit( "The Total words in this file is more than telegram limits.") else: await event.client.send_message(event.chat_id, f"{c}") await a.delete() os.remove(b) CMD_HELP.update({ "reveal": ".reveal <reply to a file>\nUse - Read contents of file and send as a telegram message." })
CMD_HELP.update({ "bot": "!history <reply to a user>\ \n**Usage**: get user name, username history\ \n\n!ag <text>\ \n**Usage**: display given text with anime girl..\ \n\n!info <reply to a message>\ \n**Usage**: get message, user information \ \n\n!lyrics2 <song name>\ \n**Usage**: for get lyrics \ \n\n!fry <reply to a non animated sticker/photo>\ \n**Usage**: fry given img/sticker \ \n\n!ss <reply to a message>\ \n**Usage**: change given text to cool img \ \n\n!ss2 <reply to a photo>\ \n**Usage**: chang img to sticker \ \n\n!ss3 <reply to a photo/sticker>\ \n**Usage**: convert the img/sticker \ \n\n!ss4 <reply to a photo/sticker>\ \n**Usage**: convert the img/sticker \ \n\n!info2 <reply to a photo>\ \n**Usage**: get information about given photo \ \n\n!mask <reply to a photo/sticker>\ \n**Usage**: save your sticker/photo from covid-19 \ \n\n!ushort <link>\ \n**Usage**: shorted the url \ \n\n!mmf <texttop ; textbottom> <reply to a photo/sticker>\ \n**Usage**: mmfying the img \ \n\n **All Commands support sudo** \ " })