).get_attribute('value') await e.edit("`Done Dana Done...\n100%`") file = './carbon.png' await e.edit("`Uploading..`") await e.client.send_file( e.chat_id, file, caption= "<< `Here's your carbon!` \n **Carbonised by** DeOXy BOT>>\n**Colour Scheme: **`{}`" .format(color_name), force_document=True, reply_to=e.message.reply_to_msg_id, ) os.remove('./Anubis.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 carbon name.\ " })
"""command: .currency usd inr""" from telethon import events import asyncio from datetime import datetime import requests from uniborg.util import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("currency") SYNTAX.update({ "currency": "\ **Requested Module --> Currency Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.currency <currency value> <origin currency code> <conversion currency code>```\ \nUsage: Converts currency.\ " }) @borg.on(admin_cmd(pattern="currency (.*)")) async def _(event): if event.fwd_from: return start = datetime.now() input_str = event.pattern_match.group(1) input_sgra = input_str.split(" ") if len(input_sgra) == 3: try: number = float(input_sgra[0])
#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)
"` ▂ ▄ ▒ ▒ ▒`", "` ▂ ▄ ▆ ▒ ▒`", "` ▂ ▄ ▆ ▇ ▒`", "` ▂ ▄ ▆ ▇ █`", "**No SIM Card detected**", "**Not for Jio users**", "__Flashing Custom ROM__", "`Connecting To Jio Network...`", "` ▒ ▒ ▒ ▒ ▒`", "` ▂ ▒ ▒ ▒ ▒`", "` ▂ ▄ ▒ ▒ ▒`", "` ▂ ▄ ▆ ▒ ▒`", "` ▂ ▄ ▆ ▇ ▒`", "` ▂ ▄ ▆ ▇ █`", "**Connection Successful!**", "`Checking VoLTE`", "`Checking VoLTE.`", "`Checking VoLTE`..", "**VoLTE Not Detected ;_; **", "**Not for Jio users**", "__Flashing Stock ColorOS__", "`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({ "bholte": "\ **Requested module --> Despirate For VoLTE**\ \n\n• `.volte`\ \n__Usage: Express the sed loif of a MemeTek GSI/ROM user__\ " })
if x==93: await event.edit("`\"The more people you meet, the more you realise and appreciate how well your parents raised you.\"`") if x==94: 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({ "comment": "\ **Requested module --> Comment ;-)**\ \n\n• `.bello`\ \n__Usage: Pulls out a random logic comment. yay__\ " })
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({ "ZipUtility": 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.\ " })
"`Connecting to 2048.786.69.1`", "`syncing the server 2048.786.69.1`", "**`Connected!`**", "`Connecting To DMCA`", "`https://www.dmca.com/signup/createtakedown.aspx?r=mSAT`", "`Loading.`", "`Loading..`", "`Loading...`", "`Loading....`", "`Loading.....`", "`Loading......`", "`Loading.......`", "`Loading........`", "`Loading.........`", "`Creating Takedown`", "`Dectecting User`", "`User Dectected Successfully`", "`Sending DMCA`", "`Processing.`", "`Processing..`", "`Processing...`", "`Processing....`", "`Processing.....`", "`Processing......`", "`Processing.......`", "`Processing........`", "`Processing.........`", "`DMCA Successfully Completed`", "**2048.786.69.1 Disconnected**" ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 57]) SYNTAX.update({ "police": "\ **Requested Module --> police**\ \n\n`.police`\ \nUsage: Call police, Apply DMCA. Police will arrest the guilty.\ " })
await event.edit("```reply to a media message```") return chat = "@DrWebBot" sender = reply_message.sender if reply_message.sender.bot: await event.edit("```Reply to actual users message.```") return await event.edit(" `Sliding my tip, of fingers over it`") async with borg.conversation(chat) as conv: try: response = conv.wait_event(events.NewMessage(incoming=True,from_users=161163358)) await borg.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await event.reply("```Please unblock @sangmatainfo_bot and try again```") return if response.text.startswith("Forward"): await event.edit("```can you kindly disable your forward privacy settings for good?```") else: if response.text.startswith("Select"): await event.edit("`Please go to` @DrWebBot `and select your language.`") else: await event.edit(f"**Antivirus scan was completed. I got dem final results.**\n {response.message.message}") SYNTAX.update({ "antivirus": "\ **Requested module --> AntiVirus**\ \n\n• `.scan`\ \n__Usage: Reply to a file/website to scan for virus__\ " })
SYNTAX.update({ "admin_managment": "\ **Detailed usage of Function(s) in Admin module -->**\ \n\n• `.promote <username/reply> <custom rank (optional)>`\ \nUsage: __Provides admin rights to the person in the chat.__\ \n\n• `.demote <username/reply>`\ \nUsage: __Revokes the person's admin permissions in the chat.__\ \n\n• `.ban <username/reply> <reason (optional)>`\ \nUsage: __Bans the person off your chat.__\ \n\n• `.unban <username/reply>`\ \nUsage: __Removes the ban from the person in the chat.__\ \n\n• `.mute <username/reply> <reason (optional)>`\ \nUsage: __Mutes the person in the chat, works on admins too.__\ \n\n• `.unmute <username/reply>`\ \nUsage: __Removes the person from the muted list.__\ \n\n• `.gmute <username/reply> <reason (optional)>`\ \nUsage: __Mutes the person in all groups you have in common with them.__\ \n\n• `.ungmute <username/reply>`\ \nUsage: __Reply someone's message with .ungmute to remove them from the gmuted list.__\ \n\n• `.kick`\ \nUsage: __Kick a particular member__\ \n\n• `.kickme`\ \nUsage: __Kicks yourself from the group__\ \n\n• `.delusers`\ \nUsage: __Searches for deleted accounts in a group. Use .delusers clean to remove deleted accounts from the group.__\ \n\n• `.admins`\ \nUsage: __Retrieves a list of admins in the chat.__\ \n\n• `.users or .users <name of member>`\ \nUsage: __Retrieves all (or queried) users in the chat.__\ \n\n• `.setpic <reply to image>`\ \nUsage: __Changes the group's display picture.__\ " })
from telethon import events import random, re from userbot.utils import admin_cmd import asyncio from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("gangsta") SYNTAX.update({ "gangsta": "\ **Requested Module --> Gangsta Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.gangsta```\ \nUsage: Become a gangsta.\ " }) @borg.on(admin_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)
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\n__List of included emoji(s):__\ \n{unpacked_emojis}\
Syntax: .hp orginal author : AlenPaulVarghese(@STARKTM1) """ from telethon import events import asyncio import os import sys import random from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("harrypotter") SYNTAX.update({ "harrypotter": "\ **Requested Module --> Harrypotter Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.hp```\ \nUsage: Pulls out a random happypotter chant.\ " }) @borg.on(events.NewMessage(pattern=r"\.hp", outgoing=True)) async def _(event): if event.fwd_from: return x=(random.randrange(1,40)) if (x==1): await event.edit("**MAGIC - Aberto**") if (x==2): await event.edit("**MAGIC - Accio**")
if url.status_code == 404: reply = f"`Couldn't find twrp downloads for {device}!`\n" await request.edit(reply) return page = BeautifulSoup(url.content, 'lxml') download = page.find('table').find('tr').find('a') dl_link = f"https://dl.twrp.me{download['href']}" dl_file = download.text size = page.find("span", {"class": "filesize"}).text date = page.find("em").text.strip() reply = f'**Latest TWRP for {device}:**\n' \ f'[{dl_file}]({dl_link}) - __{size}__\n' \ f'**Updated:** __{date}__\n' await request.edit(reply) SYNTAX.update({ "android": f"\ **Requested Module --> Android**\ \nGet latest Magisk releases\ \n\n```.device <codename>```\ \nUsage: Get info about android device codename or model.\ \n\n```.codename <brand> <device>```\ \nUsage: Search for android device codename.\ \n\n```.specs <brand> <device>```\ \nUsage: Get device specifications info.\ \n\n```.twrp <codename>```\ \nUsage: Get latest twrp download for android device." })
await ups.edit(f'{txt}\n`Here is the error log:\n{error}`') repo.__del__() return await ups.edit('`Successfully Updated!\n' 'Restarting, please wait...`') else: # Classic Updater, pretty straightforward. try: ups_rem.pull(ac_br) except GitCommandError: repo.git.reset("--hard", "FETCH_HEAD") reqs_upgrade = await update_requirements() await ups.edit('`Successfully Updated!\n' 'Bot is restarting... Wait for a second!`') # Spin a new instance of bot args = [sys.executable, "-m", "userbot"] execle(sys.executable, *args, environ) return MODULE_LIST.append("updater") SYNTAX.update({ "updater": "\ **𝔡𝓔𝐎𝕩𝕐 Updater**\ \n\n• `.update`\ \nUsage: __Checks for USERBOT updates.__\ \n\n• `.update now`\ \nUsage: __Downloads and Installs latest 𝔡𝓔𝐎𝕩𝕐 update.__\ " })
"`Private Call Connected...`", "`Me: Hello Sir, Please Ban This Telegram Account.`", "`Vishnu: May I Know Who Is This?`", "`Me: Yo Brah, I Am` @CyberJalagam ", "`Vishnu: OMG!!! Long time no see, Wassup Brother...\nI'll Make Sure That Guy Account Will Get Blocked Within 24Hrs.`", "`Me: Thanks, See You Later Brah.`", "`Vishnu: Please Don't Thank Brah, Telegram Is Our's. Just Gimme A Call When You Become Free.`", "`Me: Is There Any Issue/Emergency???`", "`Vishnu: Yes Sur, There Is A Bug In Telegram v69.6.9.\nI Am Not Able To Fix It. If Possible, Please Help Fix The Bug.`", "`Me: Send Me The App On My Telegram Account, I Will Fix The Bug & Send You.`", "`Vishnu: Sure Sur \nTC Bye Bye :)`", "`Private Call Disconnected.`" ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 18]) SYNTAX.update({ "call": f"\ **Requested Module --> Call meme**\ \n\nDetailed usage of fuction(s):\ \n\n```.call```\ \nUsage: Calls a friend.\ " })
import pyfiglet from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("figlet") SYNTAX.update({ "figlet": "\ **Requested Module --> Figletter Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.figlet <text>```\ \nUsage: Figlets the text.\ " }) @command(pattern="^.figlet ?(.*)", outgoing=True) async def figlet(event): if event.fwd_from: return CMD_FIG = { "slant": "slant", "3D": "3-d", "5line": "5lineoblique", "alpha": "alphabet", "banner": "banner3-D", "doh": "doh", "iso": "isometric1", "letter": "letters", "allig": "alligator", "dotm": "dotmatrix",
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({ "logic": "\ **Requested module --> Being Logical ;-)**\ \n\n• `.bello`\ \n__Usage: Pulls out a random logic command. yay__\ " })
await v_url.delete() elif video: await v_url.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() MODULE_LIST.append("yt_dl") SYNTAX.update({ "yt_dl": "\ **Requested Module --> YouTube Downloader**\ \n\n`.ytv <link>`\ \nUsage: Downloads YouTube video (with audio)\ \n\n`.yta <link>`\ \nUsage: Downloads audio only\ " })
useragents = BeautifulSoup( requests.get( 'https://developers.whatismybrowser.com/' 'useragents/explore/operating_system_name/android/').content, 'lxml').findAll('td', {'class': 'useragent'}) user_agent = choice(useragents) return user_agent.text MODULE_LIST.append("direct_link") SYNTAX.update({ "direct_link": "\ **Requested Module --> Direct Link Generator**\ \n\n• `.direct <url>`\ \nUsage: __Generate direct download link from supported URL(s)__\ \n\nSupported websites:\ \nGoogle Drive\ \nMEGA.nz\ \nCloud Mail\ \nYandex.Disk\ \nAFH\ \nZippyShare\ \nMediaFire\ \nSourceForge\ \nOSDN\ \nGitHub\ " })
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 "No name set yet nibba, Just do set a name nibber." @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" "Thanks to: @SnapDragon7410, @anubisxx\n" f"ℱÃ𝐈𝕥н𝒻𝕦l𝕝𝔂 𝑤𝑜𝑟𝑘𝑖𝑛𝑔 𝑓𝑜𝑟: 🎖{DEFAULTUSER}\n" "**◆ --------------------- ✪ ---------------------◆**\n\n" " ★彡 [GitHub](https://github.com/JAISHNAVPRASAD-DarklIous/X-tra-Telegram) 彡★" " ") SYNTAX.update({ "alive": "\ **Requested Module --> alive**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.alive```\ \nUsage: Checks If Userbot Is Alive.\ " })
"⬛⬛⬛⬜⬜\n⬜⬜👇⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜", "⬛⬛⬛⬛⬜\n⬜⬜⬜👇⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜", "⬛⬛⬛⬛⬜\n⬜⬜⬜⬛⬜\n⬜⬜⬜👇⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜", "⬛⬛⬛⬛⬜\n⬜⬜⬜⬛⬜\n⬜⬜⬜⬛⬜\n⬜⬜⬜👇⬜\n⬜⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜", "⬛⬛⬛⬛⬜\n⬜⬜⬜⬛⬜\n⬜⬜⬜👇⬜\n⬜⬜⬜[🎁](https://github.com/Dark-Princ3/X-tra-Telegram/)⬜\n⬜⬜⬜⬜⬜", "⬛⬛⬛⬛⬜\n⬜⬜⬜👇⬜\n⬜⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜", "⬛⬛⬛⬜⬜\n⬜⬜👇⬜⬜\n⬜⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜", "⬛⬛⬜⬜⬜\n⬜👇⬜⬜⬜\n⬜[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜", "⬛⬜⬜⬜⬜\n👇⬜⬜⬜⬜\n[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜", "⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜\n⬜⬜⬜⬜⬜", "⬜⬜⬜⬜\n⬜⬜⬜⬜\n⬜⬜⬜⬜\n⬜⬜⬜⬜", "⬜⬜⬜\n⬜⬜⬜\n⬜⬜⬜", "⬜⬜\n⬜⬜", "[🎁](https://github.com/JAISHNAVPRASAD-DarklIous/DeOXy/)" ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 17]) SYNTAX.update({ "lucky": f"\ **Requested Module --> Lucky**\ \n\nDetailed usage of fuction(s):\ \n\n```.lucky```\ \nUsage: Gifts DeOXy Repo :-0 .\ " })
"""Quickly make a decision Syntax: .decide""" from telethon import events import requests from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("decide") SYNTAX.update({ "decide": "\ **Requested Module --> Decider Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.decide```\ \nUsage: Hepls you in an situation where you are unable to say yes or no.\ " }) @borg.on(admin_cmd("decide")) async def _(event): if event.fwd_from: return message_id = event.message.id if event.reply_to_msg_id: message_id = event.reply_to_msg_id r = requests.get("https://yesno.wtf/api").json() await borg.send_message(event.chat_id, r["answer"], reply_to=message_id,
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~~ cuz always ded__Whenever I feel like it__**( ಠ ʖ̯ ಠ)** " 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**.\ " })
from telethon import events import asyncio from collections import deque from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("solarsystem") @borg.on(events.NewMessage(pattern=r"\.earth", outgoing=True)) async def _(event): if event.fwd_from: return deq = deque(list("🌏🌍🌎🌎🌍🌏🌍🌎")) for _ in range(48): await asyncio.sleep(0.1) await event.edit("".join(deq)) deq.rotate(1) SYNTAX.update({ "solarsystem": f"\ **Requested Module --> Solar System**\ \n\nDetailed usage of fuction(s):\ \n\n\ \nUsage: Creates Cool solar system based Emojis.\n\ \n\nList of included animaes:\ \n```.Earth```\n\ \n```.moon```\n\ \n```.solarsystem```\n\ \n```.isro```\n\ " })
import asyncio import re from telethon import events, utils from telethon.tl import types from userbot.plugins.sql_helper.filter_sql import get_filter, add_filter, remove_filter, get_all_filters, remove_all_filters from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("filters") SYNTAX.update({ "filters": "\ **Requested Module --> Filter Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n• `.savefilter <text>`\ \nUsage: __Saves a filter__\ \n\n• `.listfilters`\ \nUsage: __Retrieves all the filters.__\ \n\n• `.clearfilter <filter>`\ \nUsage: __Clear a specific filter__\ \n\n• `.clearallfilters`\ \nUsage: __Clears all the filters saved.__\ " }) DELETE_TIMEOUT = 0 TYPE_TEXT = 0 TYPE_PHOTO = 1 TYPE_DOCUMENT = 2 global last_triggered_filters last_triggered_filters = {} # pylint:disable=E0602
"""Get ID of any Telegram media, or any user Syntax: .get_id""" from telethon import events from telethon.utils import pack_bot_file_id from userbot.utils import admin_cmd from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("id") SYNTAX.update({ "id": "\ **Requested Module --> ID Fetcher Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.id```\ \nUsage: Fetches the user ID.\ " }) @borg.on(admin_cmd("id")) async def _(event): if event.fwd_from: return if event.reply_to_msg_id: chat = await event.get_input_chat() r_msg = await event.get_reply_message() if r_msg.media: bot_api_file_id = pack_bot_file_id(r_msg.media) await event.edit( "Current Chat ID: `{}`\nFrom User ID: `{}`\nBot API File ID: `{}`"
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:
import re from re import findall from search_engine_parser import GoogleSearch from asyncio import sleep from userbot.utils import register from telethon.tl.types import DocumentAttributeAudio from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("google") SYNTAX.update({ "google": "\ **Requested Module --> Google Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.google```\ \nUsage: Searches an item in google.\ \n\n```.ggl```\ \nUsage: Memes a use to search google.\ " }) @register(outgoing=True, pattern=r"^\.google (.*)") async def gsearch(q_event): """ For .google command, do a Google search. """ match = q_event.pattern_match.group(1) page = findall(r"page=\d+", match) try: page = page[0] page = page.replace("page=", "")
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"
client = telebot = bot from telethon.tl.functions.messages import GetCommonChatsRequest ALIVE_NAME = str(ALIVE_NAME) from telethon.events import ChatAction from global_variables_sql import SYNTAX, MODULE_LIST MODULE_LIST.append("global_rights") SYNTAX.update({ "global_rights": "\ **Requested Module --> Global Rights Module**\ \n\n**Detailed usage of fuction(s):**\ \n\n```.gban```\ \nUsage: Globally bans a user everywhere you admin in.\ \n\n```.ungban```\ \nUsage: UnGlobally bans a user everywhere you admin in.\ \n\n```.gmute```\ \nUsage: Globally mutes a user everywhere you admin in.\ \n\n```.ungmute```\ \nUsage: Globally unmutes a user everywhere you admin in.\ " }) # Imported from @javes05 # Kangers keep the credits -_- @command(outgoing=True, pattern="^.gban(?: |$)(.*)") async def startgban(tb): oof = tb