#help from @sunda005 and @SpEcHIDe # don't edit credits from geopy.geocoders import Nominatim from userbot.utils import admin_cmd from telethon.tl import types from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("gps") SYNTAX.update({ "gps": "\ **Requested Module --> Gps Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.gps```\ \nUsage: Fetches the location.\ " }) @borg.on(admin_cmd(pattern="gps ?(.*)")) async def gps(event): if event.fwd_from: return reply_to_id = event.message if event.reply_to_msg_id: reply_to_id = await event.get_reply_message() input_str = event.pattern_match.group(1)
if event.fwd_from: return input_str = event.pattern_match.group(1) try: req_ascii = ascii[str(input_str)] await event.edit(req_ascii) except KeyError: await event.edit("ASCII art not found!") SYNTAX.update({ "reactions": "\ **Requested Module --> reactions**\ \n\n**Detailed usage of fuction(s):**\ \nUsage: Just some funny little animations ;)\ \n\n__List of reactions:__\ \n• `.oof`\ \n• `.sed`\ \n• `.hek`\ " }) SYNTAX.update({ "emojis": f"\ **Requested Module --> emojis**\ \n\n**Detailed usage of fuction(s):**\ \n\n• .emoji `<emoji_name>`\ \nUsage: __Prints the target emoji.__\ \n\nList of included emoji(s):\ \n{unpacked_emojis}\ "
# From The-TG-Bot v3 # By Priyam Kalra # Syntax .search <text> from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("CPH1859") SYNTAX.update({ "CPH1859": "\ **Requested Module --> Realme 1 Update Fetcher**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.CPH1859 <ROM_NAME/KERNEL/RECOVERY>```\ \nUsage: Fetches the CPH1859 **Development**.\ " }) @borg.on(admin_cmd(pattern="CPH1859 ?(.*)")) async def handler(event): if event.fwd_from: return reply = await event.get_reply_message() input_args = event.pattern_match.group(1) # Tweak input for lower chance of failure args = input_args.split()[0] args = f"#{args}" chat = "@Realme1Updates" async for message in client.iter_messages(chat): msg = message.text if msg is None:
#OpenSource from telethon import events import asyncio from uniborg.util import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST from telethon.tl.functions.users import GetFullUserRequest MODULE_LIST.append("hack") SYNTAX.update({ "hack": "\ **Requested Module --> Hack meme Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.hack```\ \nUsage: Memes a hack.\ \n\n```.gmailhack```\ \nUsage: hacks a person's mail.\ " }) @borg.on(admin_cmd(pattern=r"(.*)")) async def _(event): if event.fwd_from: return
from telethon import events import asyncio from userbot.utils import admin_cmd from telethon.errors.rpcerrorlist import MessageIdInvalidError from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("dumpster") SYNTAX.update({ "": "\ **Requested Module --> Dumpster**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.dumpster```\ \nUsage: Dumps some shit\ " }) @borg.on(admin_cmd(pattern="dumpster ?(.*)")) async def _(message): try: obj = message.pattern_match.group(1) if len(obj) != 3: raise IndexError inp = ' '.join(obj) except IndexError: inp = "🥞 🎂 🍫" u, t, g, o, s, n = inp.split(), '🗑', '<(^_^ <)', '(> ^_^)>', '⠀ ', '\n' h = [(u[0], u[1], u[2]), (u[0], u[1], ''), (u[0], '', '')] for something in reversed([
from os import popen from random import choice import requests from bs4 import BeautifulSoup from humanize import naturalsize from userbot.utils import register from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("direct") SYNTAX.update({ "direct": "\ **Requested Module --> Direct Link Provider Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.direct <link>```\ \nUsage: Fetches the direct link.\ " }) @register(outgoing=True, pattern=r"^.direct(?: |$)([\s\S]*)") async def direct_link_generator(request): """ direct links generator """ await request.edit("`Processing...`") textx = await request.get_reply_message() message = request.pattern_match.group(1) if message: pass elif textx: message = textx.text else:
animation_ttl = range(0, 8) input_str = event.pattern_match.group(1) if input_str == "mepro": await event.edit(input_str) animation_chars = [ "EvErYbOdY", "iZ", "PeRu", "uNtiL", "i", "aRriVe", "😈", "EvErYbOdY iZ PeRu uNtiL i aRriVe 😈" ] for i in animation_ttl: await event.edit(animation_chars[i % 8]) await asyncio.sleep(animation_interval) SYNTAX.update({ "pro_noob": "\ **Available commands in pro_noob**\ \n\n`.younoob`\ \n`.menoob`\ \n`.youpro`\ \n`.mepro`\ " })
await e.edit("`Processing..\n75%`") # Waiting for downloading sleep(2.5) await e.edit("`Completed...\n100%`") file = './carbon.png' await e.edit("`Uploading..`") await e.client.send_file( e.chat_id, file, caption= "`Here's your new DP !!` \n **Carbonised by** [𝔡𝓔𝐎𝕩𝕐 USERBOT](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy)", force_document=True, reply_to=e.message.reply_to_msg_id) os.remove('./carbon.png') driver.quit() # Removing carbon.png after uploading await e.delete() # Deleting msg MODULE_LIST.append("carbon") SYNTAX.update({ "carbon": f"\ **Requested Module --> Carbonizer**\ \n\nDetailed usage of fuction(s):\ \n\n```.carbon <name>```\ \nUsage: Prints a cool carbonized name picture.\ " })
await event.edit( "`\"A comma is a short pause, a coma is a long pause.\"`") if x == 95: await event.edit( "`\"Someday you will either not wake up or not go to sleep.\"`") if x == 96: await event.edit( "`\"Bermuda Triangle might be the exit portal of this simulation.\"`" ) if x == 97: await event.edit( "`\"If we put solar panels above parking lots, then our cars wouldn't get hot and we would have a lot of clean energy.\"`" ) SYNTAX.update({ "belo": "\ **Requested module --> Bot Say Something ;-)**\ \n\n• `.bello`\ \n__Usage: Pulls out a random shit. yay__\ " })
"""Dictionary Plugin for @UniBorg Syntax: .meaning <word>""" import requests from telethon import events from uniborg.util import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("Dictionary") SYNTAX.update({ "Dictionary": "\ **Requested Module --> Dictionary Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.meaning <word>```\ \nUsage: Looks for the meaning of the word **true**.\ " }) @borg.on(admin_cmd("meaning (.*)")) async def _(event): if event.fwd_from: return input_str = event.pattern_match.group(1) input_url = "https://bots.shrimadhavuk.me/dictionary/?s={}".format( input_str) headers = {"USER-AGENT": "UniBorg"} caption_str = f"Meaning of __{input_str}__\n" try:
from userbot import CMD_LIST from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("userbot") SYNTAX.update({ "userbot": "\ **Requested Module --> Userbot main Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.load```\ \nUsage: Load a pre-existing module.\ \n\n```.unload```\ \nUsage: Unload a module.\ \n\n```.install```\ \nUsage: install a module.\ \n\n```.shutdown```\ \nUsage: Poweroff your userbot.\ \n\n```.restart```\ \nUsage: Restarts your userbot.\ \n\n```.plugins```\ \nUsage: See all the modules of the userbot.\ \n\n```.send <plugin_name>```\ \nUsage: Send a plugin.\ \n\n```.help```\ \nUsage: The legacy way of seeking help.\ " }) @command(pattern="^.help ?(.*)") async def cmd_list(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): tgbotusername = Var.TG_BOT_USER_NAME_BF_HER
""".admin Plugin for @UniBorg""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("pay") SYNTAX.update({ "pay": "\ **Requested Module --> pay**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.pay```\ \nUsage: **pay**.\ " }) @borg.on(admin_cmd("pay")) async def _(event): if event.fwd_from: return await client.send_file( file="pay.png", force_document=False, ) chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f""
"`Connecting To Jio Network...`", "` ▒ ▒ ▒ ▒ ▒`", "` ▂ ▒ ▒ ▒ ▒`", "` ▂ ▄ ▒ ▒ ▒`", "` ▂ ▄ ▆ ▒ ▒`", "` ▂ ▄ ▆ ▇ ▒`", "` ▂ ▄ ▆ ▇ █`", "**Connection Succesful!**", "`Checking VoLTE`", "`Checking VoLTE.`", "`Checking VoLTE..`", "**Stable VoLTE Dectected**", "`#JioGeng Continue The Sed ShitOS Loif ;_; `" ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 41]) SYNTAX.update({ "desp4volte": "\ **Requested module --> Despirate For VoLTE**\ \n\n• `.volte`\ \n__Usage: Express the sed loif of a MemeTek GSI/ROM user__\ " })
from apiclient.errors import ResumableUploadError from oauth2client.client import OAuth2WebServerFlow from oauth2client.file import Storage from oauth2client import file, client, tools from mimetypes import guess_type import httplib2 from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("gdrive") SYNTAX.update({ "gdrive": "\ **Requested Module --> Google Drive Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.ugdrive```\ \nUsage: upload to gdrive\ \n\n```.gdrivedir```\ \nUsage: Enter a folder\ \n\n```.gfolder```\ \nUsage: Share a whole folder\ " }) # 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"
"""CoronaVirus LookUp Syntax: .covid <country>""" from covid import Covid from uniborg.util import admin_cmd from telethon.errors.rpcerrorlist import YouBlockedUserError from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("covid") SYNTAX.update({ "covid": "\ `.covid <country>`\ \n\nUsage: Fetches latest covid19 statistics for a specific country \ " }) @borg.on(admin_cmd(pattern="covid (.*)")) async def handler(event): if event.fwd_from: return country = event.pattern_match.group(1) if not country: await event.edit( "Thats not how it works. Use `.help covid` for more info.") return await event.edit("`Fetching information..`") bot = "@HarukaAyaBot" async with client.conversation(bot) as bot_conv: try:
# Exclusive for PhoeniX Userbot. # By @Techy05 (DON'T REMOVE THESE LINES) #Ported to DeOXy ## Don't modify this module from global_variables_sql import SYNTAX, MODULE_LIST, ERROR, ERROR_LIST MODULE_LIST.append("errors") SYNTAX.update({ "errors": "\ **Getting issues while using 𝔡𝓔𝐎𝕩𝕐? Or a modules aren't working?**\ \nDon't worry, Let's fix them\ \n\n• `.errors`\ \nUsage: __Shows the list of known errors in Userbots__\ \n\n• `.solution <error_name>`\ \nUsage: __Shows the solution for the requested error/problem__\ " }) ERROR_LIST.append("updater error") ERROR.update({ "updater error": "\ **So, you're having problems with updater. 𝔡𝓔𝐎𝕩𝕐 Service will fix it.**\ \n\nERROR: `Unfortunately, the directory /app does not seem to be a git repository.`\ \nSolution: __Use “.update now” and check again if it works.__\ \n__If it still doesn't work, then use “.chl” once.__\ \n\nERROR: `[UPDATER]: Looks like you are using your own custom branch (master). in that case, Updater is unable to identify which branch is to be merged. please checkout to any official branch`\ \nSolution: __Delete 𝔡𝓔𝐎𝕩𝕐 repo from your account. Refork__ [𝔡𝓔𝐎𝕩𝕐](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy). __Then Manual Deploy from Heroku to fix__\ \nIf you use custom fork, then please don't mess with branches.\ " })
""" Available Commands: .moosic""" from telethon import events import asyncio from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("moosic") SYNTAX.update({ "moosic": "\ **Requested Module --> Moosic Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.moosic```\ \nUsage: Animates a random music.\ " }) @borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True)) async def _(event): if event.fwd_from: return
# 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 admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("gbun") SYNTAX.update({ "gbun": "\ **Requested Module --> Gban Prank Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.gbun```\ \nUsage: Reply to a user message.\ " }) @borg.on(admin_cmd("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 Telegram Addict. __" await event.edit("**Global ban in progress ❗️⚜️☠️**") asyncio.sleep(3.5) chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
""" #syntax .leave """ from telethon.tl.functions.channels import LeaveChannelRequest from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST import time MODULE_LIST.append("leave") @borg.on(admin_cmd("leave", outgoing=True)) async def leave(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): await e.edit("`Chat Leave Request Proceeded`") time.sleep(3) if '-' in str(e.chat_id): await borg(LeaveChannelRequest(e.chat_id)) else: await e.edit('`Unable To Leave - Not A Chat`') SYNTAX.update({ "leave": f"\ **Requested Module --> Chat Leaver**\ \n\nDetailed usage of fuction(s):\ \n\n```.leave```\ \nUsage: Leaves The Current Chat/Group.\ " })
days=-days, hours=-hours, minutes=-minutes) afk_since = date.strftime("%A, %Y %B %m, %H:%I") else: wday = now + datetime.timedelta(days=-days) afk_since = wday.strftime('%A') elif hours > 1: afk_since = f"`{int(hours)}h{int(minutes)}m` **ago**" elif minutes > 0: afk_since = f"`{int(minutes)}m{int(seconds)}s` **ago**" else: afk_since = f"`{int(seconds)}s` **ago**" msg = None message_to_reply = f"__My Master Has Been Gone **AFK** For__ `{total_afk_time}`\nWhere He Is: ~~ONLY GOD KNOWS~~ " + \ f"\n\n__I promise I'll back in a few light years__\n**REASON**: {reason}" \ if reason \ else f"**Hey Nibba!**\n__I am currently AFK oof. Since when, you ask? For {total_afk_time} I guess.__\n\nWhen will I be back? ~~Soon~~ __Whenever I feel like it__\n`cuz always ded` **( ಠ ʖ̯ ಠ)** " msg = await event.reply(message_to_reply) await asyncio.sleep(5) if event.chat_id in last_afk_message: # pylint:disable=E0602 await last_afk_message[event.chat_id].delete() # pylint:disable=E0602 last_afk_message[event.chat_id] = msg # pylint:disable=E0602 SYNTAX.update({ "afk": "\ **Requested Module --> afk**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.afk <optional_reason>```\ \nUsage: Changes afk mode to **true**.\ " })
""" Get the Bots in any chat* Syntax: .get_bot""" from telethon import events from telethon.tl.types import ChannelParticipantAdmin, ChannelParticipantsBots from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("bots") SYNTAX.update({ "bots": "\ **Requested Module --> Bots Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.bots```\ \nUsage: Fetches all the bots in a group.\ " }) @borg.on(admin_cmd("bots ?(.*)")) async def _(event): if event.fwd_from: return mentions = "`Detected Bots:` \n" input_str = event.pattern_match.group(1) to_write_chat = await event.get_input_chat() chat = None if not input_str: chat = to_write_chat else:
from userbot.utils import admin_cmd import glob import os try: import instantmusic, subprocess except: os.system("pip install instantmusic") from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("music") SYNTAX.update({ "music": "\ **Requested Module --> Music fetcher Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.song```\ \nUsage: Lets make it music.\ " }) os.system("rm -rf *.mp3") def bruh(name): os.system("instantmusic -q -s " + name) @borg.on(admin_cmd(pattern="song ?(.*)")) async def _(event):
await bot.send_message( event.chat_id, "{} caused `{}`".format(caption_rts, str(e)), reply_to=event.message.id ) # some media were having some issues continue os.remove(single_file) os.remove(downloaded_file_name) def get_lst_of_files(input_directory, output_lst): filesinfolder = os.listdir(input_directory) for file_name in filesinfolder: current_file_name = os.path.join(input_directory, file_name) if os.path.isdir(current_file_name): return get_lst_of_files(current_file_name, output_lst) output_lst.append(current_file_name) return output_lst SYNTAX.update({ "Zip/Unzipper": f"\ **Requested Module --> Compression Module**\ \n\nDetailed usage of fuction(s):\ \n\n```.zip```\ \nUsage: Makes a Zip/Compress the file replied.\ \n\n\ \n\n```.unzip```\ \nUsage: Unzip/Decompress the file replied.\ " })
animation_chars = [ "Fiiiiire", "( ・ิω・ิ)︻デ═一-->", "---->____________", "------>__________", "-------->_________", "---------->_______", "------------>_____", "-------------->____", "------------------>", "------>;(^。^)ノ", "( ̄ー ̄) DED", "**Target killed successfully (°̥̥̥̥̥̥̥̥•̀.̫•́°̥̥̥̥̥̥̥)**", ] for i in animation_ttl: await event.edit(animation_chars[i % 103]) SYNTAX.update({ "kill": f"\ **Requested Module --> Message Killer**\ \n\nDetailed usage of fuction(s):\ \n\n```.kill```\ \nUsage: Kills the replied target.\ " })
e = "No Error" o = stdout.decode() if not o: o = "**Tip**: \n`If you want to see the results of your code, I suggest printing them to stdout.`" else: _o = o.split("\n") o = "`\n".join(_o) OUTPUT = f"**QUERY:**\n__Command:__\n`{cmd}` \n__PID:__\n`{process.pid}`\n\n**stderr:** \n`{e}`\n**Output:**\n{o}" if len(OUTPUT) > 4095: with io.BytesIO(str.encode(OUTPUT)) as out_file: out_file.name = "exec.text" await bot.send_file(event.chat_id, out_file, force_document=True, allow_cache=False, caption=cmd, reply_to=reply_to_id) await event.delete() await event.edit(OUTPUT) SYNTAX.update({ "bash": f"\ **Requested Module --> Bash Programming**\ \n\nDetailed usage of fuction(s):\ \n\n```.bash <code>```\ \nUsage: Runs the bash script.\ " })
from userbot import ALIVE_NAME from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("alive") DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "DeOXy Master- No Name Specified" @command(outgoing=True, pattern="^.alive$") async def amireallyalive(alive): """ For .alive command, check if the bot is running. """ await alive.edit("•´¯``•.¸¸.•` 𝔡𝓔𝐎𝕩𝕐 `•.¸¸.•´´¯`•\n\n" "👍🏻 `-̷-̷ Currently Alive! 🍻 -̷-̷` \n\n" "__Telethon version: 6.9.0 // Python: 3.7.3\n\n__" "**◆ ---------------- ✪ ----------------◆**\n" "𝓑𝓸𝓽 𝓜𝓪𝓭𝓮 𝓑𝔂: [ᴊᴀɪꜱʜɴᴀᴠᴘʀᴀꜱᴀᴅ | #𝓣𝓱𝓮𝓣𝓮𝓬𝓱𝓖𝓪𝓷𝓰](t.me/CyberJalagam)\n" f"ℱÃ𝐈𝕥н𝒻𝕦l𝕝𝔂 𝑤𝑜𝑟𝑘𝑖𝑛𝑔 𝑓𝑜𝑟: {DEFAULTUSER}\n" "**◆ ---------------- ✪ ----------------◆**\n\n" " ★彡 [GitHub](https://github.com/CyberJalagam/DeOXy) 彡★" " ") SYNTAX.update({ "alive": "\ **Requested Module --> alive**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.alive```\ \nUsage: Checks If Userbot Is Alive.\ " })
#Module made for mocking Priyam. #Sorry Priyam, Don't take it seriously XD #Syntax .gei""" from telethon import events import asyncio from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("gei") SYNTAX.update({ "gei": "\ **Requested Module --> Make it gei Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.gei```\ \nUsage: Lets make it gei.\ " }) @borg.on(admin_cmd("(.*)")) async def _(event): if event.fwd_from: return animation_interval = 0.2 animation_ttl = range(0, 4) input_str = event.pattern_match.group(1) if input_str == "gei": await event.edit(input_str)
if isinstance(x.participant, ChannelParticipantCreator): mentions += "\n 👑 [{}](tg://user?id={}) `{}`".format( x.first_name, x.id, x.id) mentions += "\n" async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): if not x.deleted: if isinstance(x.participant, ChannelParticipantAdmin): mentions += "\n ⚜️ [{}](tg://user?id={}) `{}`".format( x.first_name, x.id, x.id) else: mentions += "\n `{}`".format(x.id) if should_mention_admins: if reply_message: await reply_message.reply(mentions) else: await event.reply(mentions) await event.delete() else: await event.edit(mentions) SYNTAX.update({ "admemes": f"\ **Requested Module --> Adememes**\ \n\nDetailed usage of fuction(s):\ \n\n```.admemes```\ \nUsage: Shows All The Admins On The Group.\ \n\n**Reply To A Message For Mentions**\ " })
else: await event.edit(OUT_STR) @borg.on(admin_cmd("rmblacklist ((.|\n)*)")) async def on_delete_blacklist(event): 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 event.edit( f"Removed {successful} / {len(to_unblacklist)} from the blacklist") SYNTAX.update({ "blacklist": f"\ **Requested Module --> Blacklister**\ \n\nDetailed usage of fuction(s):\ \nUsage: Adds,Removes And Shows Blacklist.\ \n\n**List of Available commands:**\ \n```.addblacklist``` __(Add blacklist)__\n\ \n```.rmblacklist``` __(Remove blacklist)__\n\ \n```.listblacklist``` __(Shows The Black List)__\n\ " })
import asyncio import os import time from datetime import datetime from telethon import events from telethon.tl.types import DocumentAttributeVideo from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("github") SYNTAX.update({ "github": "\ **Requested Module --> Github Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.github```\ \nUsage: Reply to a file to commit to your repo.\ \n\n```.git_info <username>```\ \nUsage: Fetches the info of provided username.\ " }) GIT_TEMP_DIR = "./userbot/temp/" @command(pattern="^.commit", outgoing=True) async def download(event): if event.fwd_from: return if Var.GITHUB_ACCESS_TOKEN is None: await event.edit("**DeOXy MASTER:** `Please ADD Proper Access Token from github.com`") return if Var.GIT_REPO_NAME is None: