├── Procfile ├── requirements.txt ├── .gitlab-ci.yml ├── var.py ├── userbot ├── plugins │ ├── test.py │ ├── ping.py │ ├── repeat.py │ ├── thinklol.py │ ├── ttf.py │ ├── moon2.py │ ├── earth.py │ ├── clock.py │ ├── README.md │ ├── listmyusernames.py │ ├── decide.py │ ├── undlt.py │ ├── tagall.py │ ├── sca.py │ ├── mention.py │ ├── whatscrap.py │ ├── ifsc.py │ ├── wtf.py │ ├── schd_spam.py │ ├── gaand_me_loge.py │ ├── howtogoogle.py │ ├── calladmin.py │ ├── git.py │ ├── sql_helper │ │ ├── __init__.py │ │ ├── gmute_sql.py │ │ ├── mute_sql.py │ │ ├── pmpermit_sql.py │ │ ├── notes_sql.py │ │ ├── snips_sql.py │ │ ├── welcome_sql.py │ │ ├── locks_sql.py │ │ └── filter_sql.py │ ├── ftext.py │ ├── sp_search.py │ ├── wikipedia.py │ ├── gangasta.py │ ├── cmd_list.py │ ├── chain.py │ ├── quotes.py │ ├── shout.py │ ├── get_id.py │ ├── np.py │ ├── batch_up.py │ ├── congratulations.py │ ├── pin_message.py │ ├── selfdestruct.py │ ├── fileext.py │ ├── fpost.py │ ├── ok.py │ ├── muth.py │ ├── urbandictionary.py │ ├── json.py │ ├── alive.py │ ├── dumpster.py │ ├── fwd.py │ ├── images.py │ ├── emojis.py │ ├── ding.py │ ├── extranotes.py │ ├── figlet.py │ ├── xtools.py │ ├── coinflip.py │ ├── eye.py │ ├── gizoogle.py │ ├── list.py │ ├── colors.py │ ├── get_bot.py │ ├── typing.py │ ├── count.py │ ├── plane.py │ ├── stats.py │ ├── power_tools.py │ ├── github.py │ ├── getmusic.py │ ├── currency.py │ ├── polls.py │ ├── chotatweak.py │ ├── translate.py │ ├── fleaveme.py │ ├── log_pms.py │ ├── randomsticker.py │ ├── mtn.py │ ├── wikimedia.py │ ├── police.py │ ├── chhadi.py │ ├── deploy.py │ ├── randomownsticker.py │ ├── padmin.py │ ├── frybot.py │ ├── countdown.py │ ├── think.py │ ├── dictionary.py │ ├── bash.py │ ├── autopic.py │ ├── screencapture.py │ ├── quotly.py │ ├── design.py │ ├── dns.py │ ├── webupload.py │ ├── antivirus.py │ ├── ninja.py │ ├── cry.py │ ├── xkcd.py │ ├── hypnotis.py │ ├── labstack.py │ ├── misc.py │ ├── pastebin.py │ ├── call.py │ ├── exec.py │ ├── iffuci.py │ ├── barcode.py │ ├── quickheal.py │ ├── lucky.py │ ├── get_admin.py │ ├── time.py │ ├── _helper.py │ ├── hack.py │ ├── chandrayan.py │ ├── eval.py │ ├── gbun.py │ ├── something.py │ ├── fuck.py │ ├── phub.py │ ├── zipfile.py │ ├── nakal.py │ ├── gmute.py │ ├── sticklet.py │ ├── mf.py │ ├── channel_download.py │ ├── hash.py │ ├── moon.py │ ├── snake.py │ ├── speedtest.py │ ├── torrent_search.py │ └── stt.py └── __main__.py ├── telesetup.py ├── requirements-startup.txt ├── LICENSE ├── README.md ├── .gitignore └── heroku_config.py /Procfile: -------------------------------------------------------------------------------- 1 | userbot: python -m userbot 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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") 12 | -------------------------------------------------------------------------------- /userbot/plugins/ping.py: -------------------------------------------------------------------------------- 1 | from telethon import events 2 | from datetime import datetime 3 | 4 | 5 | @command(pattern="^.ping") 6 | async def _(event): 7 | if event.fwd_from: 8 | return 9 | start = datetime.now() 10 | await event.edit("Pong!") 11 | end = datetime.now() 12 | ms = (end - start).microseconds / 1000 13 | await event.edit("Pong!\n{}".format(ms)) 14 | -------------------------------------------------------------------------------- /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/thinklol.py: -------------------------------------------------------------------------------- 1 | # (c) @UniBorg 2 | 3 | from telethon import events 4 | import asyncio 5 | from collections import deque 6 | from uniborg.util import admin_cmd 7 | 8 | @borg.on(admin_cmd(pattern=r"lol")) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | deq = deque(list("😂🤣😂🤣😂🤣")) 13 | for _ in range(999): 14 | await asyncio.sleep(1) 15 | await event.edit("".join(deq)) 16 | deq.rotate(1) 17 | 18 | -------------------------------------------------------------------------------- /userbot/plugins/ttf.py: -------------------------------------------------------------------------------- 1 | from telethon import events 2 | import asyncio 3 | from uniborg.util import admin_cmd 4 | 5 | 6 | @borg.on(admin_cmd(pattern="ttf ?(.*)")) 7 | async def get(event): 8 | name = event.text[5:] 9 | m = await event.get_reply_message() 10 | with open(name, "w") as f: 11 | f.write(m.message) 12 | await event.delete() 13 | await borg.send_file(event.chat_id,name,force_document=True) 14 | 15 | 16 | -------------------------------------------------------------------------------- /userbot/plugins/moon2.py: -------------------------------------------------------------------------------- 1 | # (c) @UniBorg 2 | 3 | from telethon import events 4 | import asyncio 5 | from collections import deque 6 | from uniborg.util import admin_cmd 7 | 8 | @borg.on(admin_cmd(pattern=r"moon", outgoing=True)) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | deq = deque(list("🌗🌘🌑🌒🌓🌔🌕🌖")) 13 | for _ in range(32): 14 | await asyncio.sleep(0.1) 15 | await event.edit("".join(deq)) 16 | deq.rotate(1) 17 | 18 | -------------------------------------------------------------------------------- /userbot/plugins/earth.py: -------------------------------------------------------------------------------- 1 | # (c) @UniBorg 2 | # Original written by @UniBorg edit by @I_m_Rock 3 | 4 | from telethon import events 5 | import asyncio 6 | from collections import deque 7 | from uniborg.util import admin_cmd 8 | 9 | @borg.on(admin_cmd(pattern="earth")) 10 | async def _(event): 11 | if event.fwd_from: 12 | return 13 | deq = deque(list("🌏🌍🌎🌎🌍🌏🌍🌎")) 14 | for _ in range(48): 15 | await asyncio.sleep(1) 16 | await event.edit("".join(deq)) 17 | deq.rotate(1) 18 | 19 | -------------------------------------------------------------------------------- /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/sca.py: -------------------------------------------------------------------------------- 1 | """Send Chat Actions 2 | Syntax: .sca