├── Fonts ├── Lol.py └── digital.ttf ├── README.rst ├── userbot ├── plugins │ ├── Lol.py │ ├── sql_helper │ │ ├── police.py │ │ ├── __init__.py │ │ ├── gmute_sql.py │ │ ├── broadcast_sql.py │ │ ├── pmpermit_sql.py │ │ ├── mute_sql.py │ │ ├── notes_sql.py │ │ ├── snips_sql.py │ │ ├── welcome_sql.py │ │ └── locks_sql.py │ ├── test.py │ ├── repeat.py │ ├── hyperlink.py │ ├── rain.py │ ├── clock.py │ ├── README.md │ ├── listmyusernames.py │ ├── decide.py │ ├── undlt.py │ ├── tagall.py │ ├── duckduckgo.py │ ├── sca.py │ ├── mention.py │ ├── ifsc.py │ ├── wtf.py │ ├── howtogoogle.py │ ├── calladmin.py │ ├── git.py │ ├── ftext.py │ ├── supportgroup.py │ ├── sp_search.py │ ├── cmd_list.py │ ├── wikipedia.py │ ├── gangasta.py │ ├── chain.py │ ├── quotes.py │ ├── shout.py │ ├── get_id.py │ ├── np.py │ ├── shouts.py │ ├── batch_up.py │ ├── congratulations.py │ ├── plane.py │ ├── thanos.py │ ├── pin_message.py │ ├── cow.py │ ├── selfdestruct.py │ ├── diceandart.py │ ├── filext.py │ ├── fileext.py │ ├── fpost.py │ ├── muth.py │ ├── ok.py │ ├── singer.py │ ├── urbandictionary.py │ ├── json.py │ ├── autobio.py │ ├── ding.py │ ├── weebify.py │ ├── fwd.py │ ├── dumpster.py │ ├── emojis.py │ ├── getmusic.py │ ├── extranotes.py │ ├── figlet.py │ ├── coinflip.py │ ├── list.py │ ├── eye.py │ ├── gizoogle.py │ ├── alive.py │ ├── colors.py │ ├── get_bot.py │ ├── typing.py │ ├── gps.py │ ├── stats.py │ ├── malayalamcalender.py │ ├── power_tools.py │ ├── github.py │ ├── autoname.py │ ├── currency.py │ ├── polls.py │ ├── chotatweak.py │ ├── fleaveme.py │ ├── extload.py │ ├── police.py │ ├── jio.py │ ├── log_pms.py │ ├── translate.py │ ├── wikimedia.py │ ├── mask.py │ ├── deploy.py │ ├── lovestory.py │ ├── frybot.py │ ├── img.py │ ├── padmin.py │ ├── countdown.py │ ├── lastupdate.py │ ├── lucky.py │ ├── autopic.py │ ├── dictionary.py │ ├── meaning.py │ ├── add.py │ ├── think.py │ ├── spacedp.py │ ├── bash.py │ ├── screencapture.py │ ├── ping.py │ ├── gamersdp.py │ ├── quotly.py │ ├── google.py │ ├── misc.py │ ├── musicdl.py │ ├── delfp.py │ ├── design.py │ ├── dns.py │ ├── webupload.py │ ├── antivirus.py │ ├── ninja.py │ ├── cry.py │ ├── xkcd.py │ ├── hypnotis.py │ ├── webshot.py │ ├── labstack.py │ ├── avengersdp.py │ ├── exec.py │ ├── pastebin.py │ ├── iffuci.py │ ├── barcode.py │ ├── quickheal.py │ ├── something.py │ ├── time.py │ ├── get_admin.py │ ├── _helper.py │ ├── mf.py │ ├── lol.py │ ├── eval.py │ ├── poto.py │ ├── gbun.py │ ├── animesticker.py │ ├── fuck.py │ ├── zipfile.py │ └── phub.py └── __main__.py ├── _config.yml ├── Procfile ├── requirements.txt ├── .gitlab-ci.yml ├── var.py ├── .deepsource.toml ├── telesetup.py ├── requirements-startup.txt ├── LICENSE ├── .gitignore ├── heroku_config.py └── README.md /Fonts/Lol.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | Policy 🤯 2 | -------------------------------------------------------------------------------- /userbot/plugins/Lol.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | userbot: python -m userbot 2 | -------------------------------------------------------------------------------- /userbot/plugins/sql_helper/police.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | telethon>=1.10.3 2 | -r requirements-startup.txt 3 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | CheckUserBotWorking: 2 | script: 3 | - echo "Nothing" 4 | -------------------------------------------------------------------------------- /Fonts/digital.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xditya/CrackBot/master/Fonts/digital.ttf -------------------------------------------------------------------------------- /var.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | ENV = bool(os.environ.get("ENV", False)) 4 | if ENV: 5 | from heroku_config import Var as Config 6 | else: 7 | from local_config import Development as Config 8 | 9 | 10 | Var = Config 11 | -------------------------------------------------------------------------------- /.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | [[analyzers]] 4 | name = "python" 5 | enabled = true 6 | dependency_file_paths = ["requirements.txt"] 7 | 8 | [analyzers.meta] 9 | runtime_version = "3.x.x" 10 | max_line_length = 100 11 | -------------------------------------------------------------------------------- /userbot/plugins/test.py: -------------------------------------------------------------------------------- 1 | from telethon import events 2 | import asyncio 3 | import os 4 | import sys 5 | from uniborg.util import admin_cmd 6 | 7 | @borg.on(admin_cmd(pattern=r"test")) 8 | async def test(event): 9 | if event.fwd_from: 10 | return 11 | await event.edit("Test Successfull. Boss !") 12 | -------------------------------------------------------------------------------- /userbot/plugins/repeat.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from asyncio import wait 3 | from userbot.utils import admin_cmd 4 | 5 | 6 | @borg.on(admin_cmd("repeat ?(.*)")) 7 | async def _(event): 8 | message = event.text[10:] 9 | count = int(event.text[8:10]) 10 | repmessage = message * count 11 | await wait([event.respond(repmessage)for i in range(count)]) 12 | await event.delete() 13 | -------------------------------------------------------------------------------- /userbot/plugins/hyperlink.py: -------------------------------------------------------------------------------- 1 | # For UniBorg 2 | # By Priyam Kalra 3 | # Syntax (.hl ) 4 | 5 | from telethon import events 6 | from userbot.utils import admin_cmd 7 | import asyncio 8 | from telethon.tl import functions, types 9 | 10 | @borg.on(admin_cmd(pattern="hl ?(.*)")) 11 | async def _(event): 12 | if event.fwd_from: 13 | return 14 | input = event.pattern_match.group(1) 15 | await event.edit("[ㅤㅤㅤㅤㅤㅤㅤ](" + input + ")") 16 | -------------------------------------------------------------------------------- /userbot/plugins/rain.py: -------------------------------------------------------------------------------- 1 | #Originally created By KingMars ✅ Rain Sequence 2 {Updated} 2 | from telethon import events 3 | import asyncio 4 | from collections import deque 5 | 6 | 7 | @borg.on(events.NewMessage(pattern=r"\.km_rain2", outgoing=True)) 8 | async def _(event): 9 | if event.fwd_from: 10 | return 11 | deq = deque(list("☁️⛈Ř/~\İŇ🌬⚡🌪")) 12 | for _ in range(100): 13 | await asyncio.sleep(0.1) 14 | await event.edit("".join(deq)) 15 | deq.rotate(1) 16 | -------------------------------------------------------------------------------- /userbot/plugins/clock.py: -------------------------------------------------------------------------------- 1 | # (c) @UniBorg 2 | # Original written by @UniBorg edit by @INF1N17Y 3 | 4 | from telethon import events 5 | import asyncio 6 | from collections import deque 7 | from userbot.utils import admin_cmd 8 | 9 | 10 | @borg.on(admin_cmd(pattern=r"clock")) 11 | async def _(event): 12 | if event.fwd_from: 13 | return 14 | deq = deque(list("🕛🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🕚")) 15 | for _ in range(60): 16 | await asyncio.sleep(0.1) 17 | await event.edit("".join(deq)) 18 | deq.rotate(1) 19 | 20 | -------------------------------------------------------------------------------- /userbot/plugins/README.md: -------------------------------------------------------------------------------- 1 | ## Mandatory Imports 2 | ```python3 3 | None 4 | ``` 5 | There is None Mandatory Imports. Because Var, bot and command are already automatically imported. 6 | 7 | ## Explanation 8 | The Mandatory Imports are now automatically imported. 9 | 10 | ### Formation 11 | Now I will show a short script to show the formation of the desired script. 12 | ```python3 13 | @command(pattern="^.alive", outgoing=True) 14 | async def hello_world(event): 15 | if event.fwd_from: 16 | return 17 | await event.edit("**HELLO WORLD**\n\nThe following is controlling me too!\n" + Var.SUDO_USERS) 18 | ``` 19 | -------------------------------------------------------------------------------- /userbot/plugins/listmyusernames.py: -------------------------------------------------------------------------------- 1 | # For @UniBorg 2 | # (c) Shrimadhav U K 3 | 4 | from telethon import events, functions, types 5 | from uniborg.util import admin_cmd 6 | 7 | from telethon.tl.functions.channels import GetAdminedPublicChannelsRequest 8 | 9 | @borg.on(admin_cmd("listmyusernames")) 10 | 11 | async def mine(event): 12 | """ For .reserved command, get a list of your reserved usernames. """ 13 | result = await bot(GetAdminedPublicChannelsRequest()) 14 | output_str = "" 15 | for channel_obj in result.chats: 16 | output_str += f"{channel_obj.title}\n@{channel_obj.username}\n\n" 17 | await event.edit(output_str) 18 | -------------------------------------------------------------------------------- /userbot/plugins/decide.py: -------------------------------------------------------------------------------- 1 | """Quickly make a decision 2 | Syntax: .decide""" 3 | from telethon import events 4 | import requests 5 | from userbot.utils import admin_cmd 6 | 7 | 8 | @borg.on(admin_cmd("decide")) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | message_id = event.message.id 13 | if event.reply_to_msg_id: 14 | message_id = event.reply_to_msg_id 15 | r = requests.get("https://yesno.wtf/api").json() 16 | await borg.send_message( 17 | event.chat_id, 18 | r["answer"], 19 | reply_to=message_id, 20 | file=r["image"] 21 | ) 22 | await event.delete() 23 | -------------------------------------------------------------------------------- /userbot/plugins/undlt.py: -------------------------------------------------------------------------------- 1 | from telethon import events 2 | from uniborg.util import admin_cmd 3 | import asyncio 4 | 5 | 6 | @borg.on(admin_cmd(pattern="undlt")) 7 | async def _(event): 8 | if event.fwd_from: 9 | return 10 | c = await event.get_chat() 11 | if c.admin_rights or c.creator: 12 | a = await borg.get_admin_log(event.chat_id,limit=5, search="", edit=False, delete=True) 13 | for i in a: 14 | await event.reply(i.original.action.message) 15 | else: 16 | await event.edit("You need administrative permissions in order to do this command") 17 | await asyncio.sleep(3) 18 | await event.delete() 19 | -------------------------------------------------------------------------------- /userbot/plugins/tagall.py: -------------------------------------------------------------------------------- 1 | # This Source Code Form is subject to the terms of the Mozilla Public 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 | from telethon import events 5 | from uniborg.util import admin_cmd 6 | 7 | 8 | @borg.on(admin_cmd(pattern="tagall")) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | mentions = "@tagall" 13 | chat = await event.get_input_chat() 14 | async for x in borg.iter_participants(chat, 100): 15 | mentions += f"[\u2063](tg://user?id={x.id})" 16 | await event.reply(mentions) 17 | await event.delete() 18 | -------------------------------------------------------------------------------- /userbot/plugins/duckduckgo.py: -------------------------------------------------------------------------------- 1 | """use command .ducduckgo""" 2 | 3 | from telethon import events 4 | import os 5 | import requests 6 | import json 7 | from uniborg.util import admin_cmd 8 | 9 | 10 | @borg.on(admin_cmd("ducduckgo (.*)")) 11 | async def _(event): 12 | if event.fwd_from: 13 | return 14 | input_str = event.pattern_match.group(1) 15 | sample_url = "https://duckduckgo.com/?q={}".format(input_str.replace(" ","+")) 16 | if sample_url: 17 | link = sample_url.rstrip() 18 | await event.edit("Let me 🦆 DuckDuckGo that for you:\n🔎 [{}]({})".format(input_str, link)) 19 | else: 20 | await event.edit("something is wrong. please try again later.") 21 | -------------------------------------------------------------------------------- /userbot/plugins/sca.py: -------------------------------------------------------------------------------- 1 | """Send Chat Actions 2 | Syntax: .sca