import sys import random from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern=r"qt")) async def _(event): if event.fwd_from: return
chat = await event.get_chat() if chat.id not in NO_PM_LOG_USERS and chat.id != borg.uid: try: e = await borg.get_entity(int(Config.PM_LOGGR_BOT_API_ID)) fwd_message = await borg.forward_messages(e, event.message, silent=True) except Exception as e: # logger.warn(str(e)) exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] print(exc_type, fname, exc_tb.tb_lineno) print(e) @borg.on(mellow_cmd(pattern="elog ?(.*)")) async def set_no_log_p_m(event): if Config.PM_LOGGR_BOT_API_ID is not None: reason = event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if chat.id in NO_PM_LOG_USERS: NO_PM_LOG_USERS.remove(chat.id) await event.edit("Will Log Messages from this chat") await asyncio.sleep(3) await event.delete() @borg.on(mellow_cmd(pattern="nlog ?(.*)")) async def set_no_log_p_m(event): if Config.PM_LOGGR_BOT_API_ID is not None:
f = f.findall(pc) fy = "http://getwallpapers.com" + random.choice(f) print(fy) if not os.path.exists("f.ttf"): urllib.request.urlretrieve( "https://github.com/rebel6969/mym/raw/master/Rebel-robot-Regular.ttf", "f.ttf") urllib.request.urlretrieve(fy, "donottouch.jpg") @borg.on(mellow_cmd(pattern="gamerdp ?(.*)")) async def main(event): await event.edit( "**Starting Gamer 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")
import os, urllib, requests, asyncio from userbot.utils import mellow_cmd, edit_or_reply @mellow.on(mellow_cmd("boobs$")) async def boobs(event): if not os.path.isdir(Var.TEMP_DOWNLOAD_DIRECTORY): os.makedirs(Var.TEMP_DOWNLOAD_DIRECTORY) pic_loc = os.path.join(Var.TEMP_DOWNLOAD_DIRECTORY, "bobs.jpg") a = await event.reply("Finding some big boobs for u ๐ง") await asyncio.sleep(0.5) await a.edit("Sending some big boobs๐คช") nsfw = requests.get('http://api.oboobs.ru/noise/1').json()[0]["preview"] urllib.request.urlretrieve("http://media.oboobs.ru/{}".format(nsfw), pic_loc) await event.client.send_file(event.chat_id, pic_loc, force_document=False) os.remove(pic_loc) await event.delete() await a.delete() @mellow.on(mellow_cmd("butts$")) async def butts(event): if not os.path.isdir(Var.TEMP_DOWNLOAD_DIRECTORY): os.makedirs(Var.TEMP_DOWNLOAD_DIRECTORY) pic_loc = os.path.join(Var.TEMP_DOWNLOAD_DIRECTORY, "butts.jpg") a = await event.reply("Finding some beautiful butts for u๐ง") await asyncio.sleep(0.5) await a.edit("Sending some beautiful butts๐คช") nsfw = requests.get('http://api.obutts.ru/noise/1').json()[0]["preview"] urllib.request.urlretrieve("http://media.obutts.ru/{}".format(nsfw),
# Path to token json file, it should be in same directory as script G_DRIVE_TOKEN_FILE = Var.TEMP_DOWNLOAD_DIRECTORY + "/auth_token.txt" # Copy your credentials from the APIs Console CLIENT_ID = Var.G_DRIVE_CLIENT_ID CLIENT_SECRET = Var.G_DRIVE_CLIENT_SECRET # Check https://developers.google.com/drive/scopes for all available scopes OAUTH_SCOPE = "https://www.googleapis.com/auth/drive.file" # Redirect URI for installed apps, can be left as is REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob" parent_id = Var.GDRIVE_FOLDER_ID G_DRIVE_DIR_MIME_TYPE = "application/vnd.google-apps.folder" #@command(pattern="^.ugdrive ?(.*)") @borg.on(mellow_cmd(pattern=r"ugdrive ?(.*)")) async def _(event): if event.fwd_from: return mone = await event.reply("Processing ...") if CLIENT_ID is None or CLIENT_SECRET is None: await mone.edit( "This module requires credentials from https://da.gd/so63O. Aborting!" ) return False input_str = event.pattern_match.group(1) if not os.path.isdir(Var.TEMP_DOWNLOAD_DIRECTORY): os.makedirs(Var.TEMP_DOWNLOAD_DIRECTORY) required_file_name = None start = datetime.now() if event.reply_to_msg_id and not input_str:
# you may not use this file except in compliance with the License. """ Userbot module to help you manage a group """ from asyncio import sleep from os import remove from telethon.errors import BadRequestError, UserAdminInvalidError from telethon.errors.rpcerrorlist import UserIdInvalidError from userbot.utils import mellow_cmd from telethon.tl.types import (PeerChannel, ChannelParticipantsAdmins, ChatAdminRights, ChatBannedRights, MessageEntityMentionName, ChannelParticipantsBots) @borg.on(mellow_cmd(pattern="link(?: |$)(.*)")) async def permalink(mention): """ For .link command, generates a link to the user's PM with a custom text. """ user, custom = await get_user_from_event(mention) if not user: return if custom: await mention.edit(f"[{custom}](tg://user?id={user.id})") else: tag = user.first_name.replace("\u2060", "") if user.first_name else user.username await mention.edit(f"[{tag}](tg://user?id={user.id})") async def get_user_from_event(event): """ Get the user from argument or replied message. """
from glitch_this import ImageGlitcher from telethon.tl.types import MessageMediaPhoto from userbot import CMD_HELP from userbot.utils import mellow_cmd glitcher = ImageGlitcher() DURATION = 100 # Set this to however many centiseconds each frame should be visible for LOOP = 0 # Set this to how many times the gif should loop # LOOP = 0 means infinite loop sedpath = "./starkgangz/" if not os.path.isdir(sedpath): os.makedirs(sedpath) @bot.on(mellow_cmd(pattern=r"glitch")) async def glitch(event): sed = await event.get_reply_message() okbruh = await event.edit("`Gli, Glitchiiingggg.....`") if isinstance(sed.media, MessageMediaPhoto): photolove = await borg.download_media(sed.media, sedpath) elif "image" in response.media.document.mime_type.split("/"): photolove = await borg.download_media(sed.media, sedpath) else: await event.edit("`Reply To Image`") return fmt = "gif" pathsn = f"./starkgangz/@fridayot.{fmt}" glitch_imgs = glitcher.glitch_image(photolove, 2, gif=True,
def progress(current, total): logger.info( "Downloaded {} of {}\nCompleted {}".format( current, total, (current / total) * 100 ) ) DOGBIN_URL = "https://del.dog/" BOTLOG_CHATID = Config.PRIVATE_GROUP_BOT_API_ID BOTLOG = True @borg.on(mellow_cmd(pattern="paste ?(.*)")) 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) input_str = event.pattern_match.group(1) message = "SYNTAX: `.paste <long text to include>`" if input_str: message = input_str elif event.reply_to_msg_id: previous_message = await event.get_reply_message() if previous_message.media: downloaded_file_name = await borg.download_media( previous_message,
from telethon import events import asyncio import os import sys from telethon import events, functions, __version__ from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="ftxt")) async def payf(event): paytext = event.pattern_match.group(1) pay = "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}".format( paytext * 8, paytext * 8, paytext * 2, paytext * 2, paytext * 2, paytext * 6, paytext * 6, paytext * 2, paytext * 2, paytext * 2, paytext * 2, paytext * 2) await event.edit(pay)
import random from telethon import events from userbot.utils import mellow_cmd from userbot import ALIVE_NAME, ALIVE_PIC from telethon.tl.types import ChannelParticipantsAdmins DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "โ๐๐๐๐๐โฟ๐๐๐๐๐โ" MARSHMALLOW_PIC = "https://telegra.ph/file/815e018dc949131ed9118.jpg" if ALIVE_PIC is None: ALIVE_PIC = MARSHMALLOW_PIC else: ALIVE_PIC = ALIVE_PIC pm_caption = "**โ๐๐๐๐๐โฟ๐๐๐๐๐โ IS ONLINE**\n" pm_caption += f"**My Master** => **{DEFAULTUSER}**\n\n" pm_caption += "๐คะฒฯั ัััััะผ๐ค๐ค \n\n" pm_caption += "๐โ โจโฃโโโ๐ ==> 3.9.1\n" pm_caption += "๐ป๐๐๐๐๐๐๐๐๐ป ==> 1.18.2\n" pm_caption += "๐๐ป๐ธ๐ฒ๐ด๐ฝ๐ ๐ด๐ ==> ๐ฐ๐ถ๐ฟ๐ป-๐น.๐ถ ๐ป๐๐๐๐๐๐\n\n" pm_caption += "๐งโ๐ป โตโฑคษโณโฎษโฑค ==> @Mellowxd\n\n" pm_caption += "๐Sฬฝอuฬฝอpฬฝอpฬฝอoฬฝอrฬฝอtฬฝอ ฬฝอฬฝอgฬฝอrฬฝอoฬฝอuฬฝอpฬฝอ๐ ==> @marshmellowsupport\n\n" @mellow.on(mellow_cmd(pattern=r"alive")) async def amireallyalive(alive): chat = await alive.get_chat() """ For .alive command, check if the bot is running. """ await borg.send_file(alive.chat_id, file=ALIVE_PIC, caption=pm_caption) await alive.delete()
# Random RGB Sticklet by @PhycoNinja13b # modified by @UniBorg import io import os import random import textwrap from PIL import Image, ImageDraw, ImageFont from telethon.tl.types import InputMessagesFilterDocument from userbot.utils import mellow_cmd # RegEx by https://t.me/c/1220993104/500653 ( @SnapDragon7410 ) @borg.on(mellow_cmd(pattern="stcr ?(?:(.*?) \| )?(.*)", outgoing=True)) async def sticklet(event): R = random.randint(0, 256) G = random.randint(0, 256) B = random.randint(0, 256) reply_message = event.message # get the input text # the text on which we would like to do the magic on font_file_name = event.pattern_match.group(1) if not font_file_name: font_file_name = "" sticktext = event.pattern_match.group(2) if not sticktext and event.reply_to_msg_id: reply_message = await event.get_reply_message() sticktext = reply_message.message elif not sticktext:
"""Get weather data using OpenWeatherMap Syntax: .weather <Location> .wttr <location> """ import aiohttp import io import time from datetime import tzinfo, datetime from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="weathers (.*)")) async def _(event): if event.fwd_from: return sample_url = "https://api.openweathermap.org/data/2.5/weather?q={}&APPID={}&units=metric" input_str = event.pattern_match.group(1) async with aiohttp.ClientSession() as session: response_api_zero = await session.get( sample_url.format(input_str, Config.OPEN_WEATHER_MAP_APPID)) response_api = await response_api_zero.json() if response_api["cod"] == 200: country_code = response_api["sys"]["country"] country_time_zone = int(response_api["timezone"]) sun_rise_time = int(response_api["sys"]["sunrise"]) + country_time_zone sun_set_time = int(response_api["sys"]["sunset"]) + country_time_zone await event.edit("""{} **Temperature**: {}ยฐะก __minimium__: {}ยฐะก __maximum__ : {}ยฐะก **Humidity**: {}%
import aria2p from telethon import events import asyncio import os from userbot.utils import mellow_cmd cmd = "aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port 6800 --max-connection-per-server=10 --rpc-max-request-size=1024M --seed-time=0.01 --min-split-size=10M --follow-torrent=mem --split=10 --daemon=true" aria2_is_running = os.system(cmd) aria2 = aria2p.API(aria2p.Client(host="http://localhost", port=6800, secret="")) EDIT_SLEEP_TIME_OUT = 10 @borg.on(mellow_cmd(pattern="fdownload ?(.*)")) async def magnet_download(event): if event.fwd_from: return var = event.pattern_match.group(1) print(var) uris = [var] #Add URL Into Queue try: download = aria2.add_uris(uris, options=None, position=None) except Exception as e: await event.edit("`Error:\n`" + str(e)) return gid = download.gid
import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import mellow_cmd n = str( ALIVE_NAME) if ALIVE_NAME else "Set ALIVE_NAME in config vars in Heroku" #@command(outgoing=True, pattern="^.ded$") @borg.on(mellow_cmd(pattern=r"ded")) async def bluedevilded(ded): await ded.edit(n + " == |\nใใใใใ|" "\nใใใใใ| \n" "ใใใใใ| \n" "ใใใใใ| \n" "ใใใใใ| \n" "ใใใใใ| \n" "ใใใใใ| \n" "ใใใใใ| \n" "ใ๏ผ๏ฟฃ๏ฟฃ๏ผผ| \n" "๏ผ ยด๏ฝฅ ใใ |๏ผผ \n" "ใ|ใ๏ผใ | ไธถ๏ผผ \n" "๏ผ ใ๏ฝฅใใ|ใใ๏ผผ \n" "ใ๏ผผ๏ผฟ๏ผฟ๏ผโช _ โช) \n" "ใใใใใ ๏ผต ๏ผต\n") M = ("โโโโโโโโโ\n"
] HIT = [ "hits", "whacks", "fek ke maari", "slaps", "smacks", "bashes", ] # =========================================== #@register(outgoing=True, pattern=r"^.(\w+)say (.*)") @borg.on(mellow_cmd(pattern=r"(\w+)say (.*)")) async def univsaye(cowmsg): """ For .cowsay module, userbot wrapper for cow which says things. """ if not cowmsg.text[0].isalpha() and cowmsg.text[0] not in ("/", "#", "@", "!"): arg = cowmsg.pattern_match.group(1).lower() 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('`', 'ยด')}`")
import datetime from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.account import UpdateNotifySettingsRequest from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="ctg ?(.*)")) async def _(event): if event.fwd_from: return if not event.reply_to_msg_id: await event.edit("```Reply to a Link.```") return reply_message = await event.get_reply_message() if not reply_message.text: await event.edit("```Reply to a Link```") return chat = "@chotamreaderbot" sender = reply_message.sender await event.edit("```Processing```") async with event.client.conversation(chat) as conv: try: response = conv.wait_event( events.NewMessage(incoming=True, from_users=272572121)) await event.client.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await event.reply("`RIP Check Your Blacklist Boss`") return if response.text.startswith(""):
# 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/. from telethon import events from telethon.tl.functions.messages import SaveDraftRequest from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="chain")) async def _(event): await event.edit("Counting...") count = -1 message = event.message while message: reply = await message.get_reply_message() if reply is None: await borg( SaveDraftRequest(await event.get_input_chat(), "", reply_to_msg_id=message.id)) message = reply count += 1 await event.edit(f"Chain length: {count}")
#plugin made by @helloji123bot #keep credits if you are gonna kang it lol,you noob ,stupid,madafucking,avengers_leader,the copy paster import asyncio from userbot.utils import mellow_cmd from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="text (.*)")) async def _(event): name = event.pattern_match.group(1) if event.fwd_from: return animation_interval = 0.5 animation_ttl = range(192) animation_chars = [ f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n", f"๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค..**{name}**..๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n", f"๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐..**{name}**..๐๐ค๐\n๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค\n๐๐ค๐๐ค๐๐ค๐๐ค๐๐ค๐\n",
"""Invite the user(s) to the current chat Syntax: .invite <User(s)>""" from telethon import functions from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="invite ?(.*)")) async def _(event): if event.fwd_from: return to_add_users = event.pattern_match.group(1) if event.is_private: await event.edit("`.invite` users to a chat, not to a Private Message") else: logger.info(to_add_users) if not event.is_channel and event.is_group: # https://lonamiwebs.github.io/Telethon/methods/messages/add_chat_user.html for user_id in to_add_users.split(" "): try: await borg( functions.messages.AddChatUserRequest( chat_id=event.chat_id, user_id=user_id, fwd_limit=1000000)) except Exception as e: await event.reply(str(e)) await event.edit("Invited Successfully") else: # https://lonamiwebs.github.io/Telethon/methods/channels/invite_to_channel.html for user_id in to_add_users.split(" "):
inspired by : conversationqt.py made by : @Hacker_The_Unknown | Noob edited by : @Hacker_The_Unknown | Noob # KANG wITH CREDIT """ from telethon import events import asyncio import os import sys import random from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern=r"rdl")) async def _(event): if event.fwd_from: return await event.edit("Selecting the best riddle for you...") await asyncio.sleep(2) x = random.randrange(1, 60) if x == 1: await event.edit('`"What has hands but can not clap?"`') if x == 2: await event.edit( '`"If an electric train is traveling south, which way is the smoke going?"`' ) if x == 3: await event.edit( '`"A monkey, a squirrel, and a bird are racing to the top of a coconut tree. Who will get the banana first, the monkey, the squirrel, or the bird?"`'
import datetime import asyncio from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError, UserAlreadyParticipantError from telethon.tl.functions.account import UpdateNotifySettingsRequest from telethon.tl.functions.messages import ImportChatInviteRequest from userbot.utils import mellow_cmd import time from userbot import ALIVE_NAME naam = str(ALIVE_NAME) bot = "@jarvisofficialsecuritybot" @borg.on(mellow_cmd("fedban ?(.*)")) async def _(event): if event.fwd_from: return sysarg = event.pattern_match.group(1) if sysarg == "": async with borg.conversation(bot) as conv: try: await conv.send_message("/start") response = await conv.get_response() await conv.send_message("/fban") audio = await conv.get_response() final = ("If you would like to know more about fban, use visit @jarvisofficialsecuritybot." , "") await borg.send_message(event.chat_id, audio.text) await event.delete() except YouBlockedUserError:
"`Every morning brings you new hopes and new opportunities. Donโt miss any one of them while youโre sleeping. Good morning!`", "`Start your day with solid determination and great attitude. Youโre going to have a good day today. Good morning my friend!`", "`Friendship is what makes life worth living. I want to thank you for being such a special friend of mine. Good morning to you!`", "`A friend like you is pretty hard to come by in life. I must consider myself lucky enough to have you. Good morning. Wish you an amazing day ahead!`", "`The more you count yourself as blessed, the more blessed you will be. Thank God for this beautiful morning and let friendship and love prevail this morning.`", "`Wake up and sip a cup of loving friendship. Eat your heart out from a plate of hope. To top it up, a fork full of kindness and love. Enough for a happy good morning!`", "`It is easy to imagine the world coming to an end. But it is difficult to imagine spending a day without my friends. Good morning.`", "The dreams you had last night can only come to reality if you get up and work at achieving them today. Every morning is an important milestone for the next thing to achieve. So donโt waste any more time, get out there and do your best. Good morning.", "Forget about what you couldnโt achieve yesterday and think of the wonderful things today has for you. Work with all your might towards them to make your tomorrow extraordinarily bright. Good morning!", "Believe that you are beautiful and have what it takes to move mountains, and youโll move mountains. Donโt allow yourself to be let down by what others say. Get up and do what you can do best. Good morning.", "Today is not just another day, but another possible chance to achieve what you couldnโt achieve yesterday. So get on your feet and chase after your success. Good morning.", "As you wake up from sleep today, know that I have faith in you. I believe in you, and I know you have what it takes to conquer the hurdles in your way. Just believe in yourself like I believe in you and you will achieve remarkable things in this life. Good morning." ] @borg.on(mellow_cmd(pattern=f"love$", outgoing=True)) async def love(chutiyappa): await chutiyappa.edit(choice(LOVESTR)) @borg.on(mellow_cmd(pattern=f"metoo$", outgoing=True)) async def metoo(hahayes): await hahayes.edit(choice(METOOSTR)) @borg.on(mellow_cmd(pattern=f"gdnoon$", outgoing=True)) async def noon(noon): await noon.edit(choice(GDNOON)) @borg.on(mellow_cmd(pattern=f"chase$", outgoing=True))
#Made by @Kraken_The_BadASS for @HellBot_Official from userbot.utils import mellow_cmd from var import Var @borg.on(mellow_cmd(pattern="wspr ?(.*)")) async def wspr(event): if event.fwd_from: return wwwspr = event.pattern_match.group(1) botusername = "******" if event.reply_to_msg_id: reply_to_id = await event.get_reply_message() tap = await bot.inline_query(botusername, wwwspr) await tap[0].click(event.chat_id) await event.delete()
.lmlog <heroku app name> .dyno <type billing> .lmkp <type name of place as on indiankanoon.com> .lmki <Type name of item as on indiankanoon.com> .gem <Type name of item as on gem.gov.in> .archive <Type name of website you want to get info on wayback machine> """ from telethon import events import os import requests import json from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="lmg (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) sample_url = "https://da.gd/s?url=http://google.com/search?q={}".format( input_str.replace(" ", "+")) response_api = requests.get(sample_url).text if response_api: await event.edit( "Let me **Googal** that for you:\nรฐลธโโฐ [{}]({})\n`Thank me later รฐลธหโฐ` " .format(input_str, response_api.rstrip())) else: await event.edit("Something went wrong. Please try again later.")
""" thx to @r4v4n4 """ import random import re from userbot.utils import mellow_cmd @borg.on(mellow_cmd(pattern="scramble(\s+[\S\s]+|$)")) async def scramble_message(e): reply_message = await e.get_reply_message() text = e.pattern_match.group(1) or reply_message.text words = re.split(r"\s", text) scrambled = map(scramble_word, words) text = ' '.join(scrambled) await e.edit(text) def scramble_word(word): if len(word) < 4: return word first_letter = word[0] last_letter = word[-1] middle_letters = list(word[1:-1]) random.shuffle(middle_letters) return first_letter + ''.join(middle_letters) + last_letter
# This is a troll indeed ffs *facepalm* import asyncio from telethon import events from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import mellow_cmd from userbot import ALIVE_NAME @borg.on(mellow_cmd(pattern="gbun")) async def gbun(event): if event.fwd_from: return gbunVar = event.text gbunVar = gbunVar[6:] mentions = "`Warning!! User ๐๐ฝ๐ผ๐๐๐๐ฟ By Admin...\n`" no_reason = "__Reason: Potential spammer. __" await event.edit("**Summoning out le Gungnir โ๏ธโ๏ธโ ๏ธ**") await asyncio.sleep(3.5) chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"" reply_message = None if event.reply_to_msg_id: reply_message = await event.get_reply_message() replied_user = await event.client( GetFullUserRequest(reply_message.from_id)) firstname = replied_user.user.first_name usname = replied_user.user.username idd = reply_message.from_id
"""DA.GD helpers in @UniBorg Available Commands: .isup URL .dns google.com .url <long url> .unshort <short url>""" from telethon import events import os import requests import json from userbot.utils import mellow_cmd @borg.on(mellow_cmd("dns (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) sample_url = "https://da.gd/dns/{}".format(input_str) response_api = requests.get(sample_url).text if response_api: await event.edit("DNS records of {} are \n{}".format(input_str, response_api)) else: await event.edit("i can't seem to find {} on the internet".format(input_str)) @borg.on(mellow_cmd("url (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1)
f = f.findall(pc) fy = "http://getwallpapers.com" + random.choice(f) print(fy) if not os.path.exists("f.ttf"): urllib.request.urlretrieve( "https://github.com/rebel6969/mym/raw/master/Rebel-robot-Regular.ttf", "f.ttf") urllib.request.urlretrieve(fy, "donottouch.jpg") @borg.on(mellow_cmd(pattern="hacker ?(.*)")) async def main(event): await event.edit( "**Starting Hacker 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")
img8="https://telegra.ph/file/35d3c84098cf56897418c.jpg" img9="https://telegra.ph/file/3f20d84c3c682fe24ff97.jpg" img10="https://telegra.ph/file/09e017a1898fa1f46294c.jpg" img11="https://telegra.ph/file/46e7596fcc5e42b150e68.jpg" img12="https://telegra.ph/file/a7113b4b047d18dca9793.jpg" img13="https://telegra.ph/file/012bcdfeae8029337642b.jpg" img14="https://telegra.ph/file/3b671ab3b4f07025b6f01.jpg" img15="https://telegra.ph/file/34ba55eb1543578a1fc92.jpg" @borg.on(mellow_cmd(outgoing=True, pattern="mmh")) async def _(event): if event.fwd_from: return await event.edit("SENDING...:-)") await asyncio.sleep(0.9) x=(random.randrange(1,15)) if x==1: await borg.send_file(event.chat_id,img1) await event.delete() if x==2: await borg.send_file(event.chat_id,img2) await event.delete() if x==3: await borg.send_file(event.chat_id,img3) await event.delete()
contact game location voice round video photo document cancel""" import asyncio from userbot.utils import mellow_cmd from userbot import CMD_HELP @borg.on(mellow_cmd(pattern="fake ?(.*)")) async def _(event): if event.fwd_from: return await event.delete() input_str = event.pattern_match.group(1) action = "typing" if input_str: action = input_str async with borg.action(event.chat_id, action): await asyncio.sleep(86400) # type for 10 seconds CMD_HELP.update({ "fake": ".fake (action name)\