├── Procfile ├── requirements.txt ├── .gitlab-ci.yml ├── var.py ├── userbot ├── plugins │ ├── test.py │ ├── spamV2.py │ ├── ping.py │ ├── repeat.py │ ├── thinklol.py │ ├── ftext.py │ ├── earth.py │ ├── clock.animation.py │ ├── list_user_names_reserved_by_me.py │ ├── README.md │ ├── decide.py │ ├── undlt.py │ ├── tagall.py │ ├── sca.py │ ├── gaand_me_loge.py │ ├── aesthetic.py │ ├── tujhse_kisine_pucha.py │ ├── whatscrap.py │ ├── calladmin.py │ ├── commands.py │ ├── sql_helper │ │ ├── __init__.py │ │ ├── gmute_sql.py │ │ ├── mute_sql.py │ │ ├── pmpermit_sql.py │ │ ├── snips_sql.py │ │ ├── welcome_sql.py │ │ ├── locks_sql.py │ │ └── filter_sql.py │ ├── corona_virus.py │ ├── wikipedia.py │ ├── wtf.py │ ├── gangasta.py │ ├── schd.py │ ├── chain.py │ ├── quotes.py │ ├── urbandictionary.py │ ├── get_id.py │ ├── plane.py │ ├── shout.py │ ├── congratulations.py │ ├── pin_message.py │ ├── spam.py │ ├── selfdestruct.py │ ├── degi.py │ ├── fpost (1).py │ ├── nahi.py │ ├── ok.py │ ├── muth.py │ ├── alive.py │ ├── figlet.py │ ├── json.py │ ├── hii.py │ ├── images.py │ ├── dumpster.py │ ├── fwd.py │ ├── ding.py │ ├── emojis.py │ ├── gaali.py │ ├── coinflip.py │ ├── list.py │ ├── color.py │ ├── get_bot.py │ ├── typing.py │ ├── stats.py │ ├── calendar.py │ ├── states.py │ ├── github.py │ ├── power_tools.py │ ├── getmusic.py │ ├── polls.py │ ├── deploy.py │ ├── translate.py │ ├── log_pms.py │ ├── mtn.py │ ├── cry.py │ ├── fleaveme.py │ ├── wikimedia.py │ ├── chhadi.py │ ├── hack.py │ ├── randomownsticker.py │ ├── frybot.py │ ├── police.py │ ├── countdown.py │ ├── autopic.py │ ├── padmin.py │ ├── bash.py │ ├── think.py │ ├── dns.py │ ├── cloud.py │ ├── webupload.py │ ├── hypnotis.py │ ├── calc.py │ ├── stopgaali.py │ ├── squ.py │ ├── exec.py │ ├── misc.py │ ├── pastebin.py │ ├── call.py │ ├── Lucky.py │ ├── barcode.py │ ├── _helper.py │ ├── meme.py │ ├── time.py │ ├── getadmin.py │ ├── chandrayan.py │ ├── eval.py │ ├── poto.py │ ├── photo.py │ ├── loveyou.py │ ├── iloveIndia.py │ ├── gbun.py │ ├── lyrics.py │ ├── wahack.py │ ├── fuck.py │ ├── nakal.py │ ├── ocr.py │ ├── sticklet.py │ ├── channel_download.py │ ├── tts.py │ ├── hash.py │ ├── mf.py │ ├── speedtest.py │ ├── acc_profile.py │ ├── lydia.py │ ├── moon.py │ ├── jainder.py │ ├── aag.py │ ├── stt.py │ ├── snake.py │ └── blacklist.py └── __main__.py ├── telesetup.py ├── requirements-startup.txt ├── README.md ├── LICENSE ├── .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/spamV2.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import time 3 | from asyncio import wait 4 | from userbot.utils import admin_cmd 5 | 6 | @borg.on(admin_cmd("tspam")) 7 | async def tmeme(e): 8 | tspam = str(e.text[7:]) 9 | message = tspam.replace(" ", "") 10 | for letter in message: 11 | await e.respond(letter) 12 | await e.delete() 13 | -------------------------------------------------------------------------------- /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 | 7 | 8 | @borg.on(events.NewMessage(pattern=r"\.lol", outgoing=True)) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | deq = deque(list("😐😒😁😆😂🤣")) 13 | for _ in range(999): 14 | await asyncio.sleep(0.1) 15 | await event.edit("".join(deq)) 16 | deq.rotate(1) 17 | 18 | -------------------------------------------------------------------------------- /userbot/plugins/ftext.py: -------------------------------------------------------------------------------- 1 | from telethon import events 2 | import asyncio 3 | import os 4 | import sys 5 | from uniborg.util import admin_cmd 6 | 7 | 8 | 9 | @borg.on(admin_cmd(pattern="ftext ?(.*)")) 10 | async def payf(event): 11 | paytext=event.pattern_match.group(1) 12 | 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) 13 | await event.edit(pay) 14 | -------------------------------------------------------------------------------- /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 | 8 | 9 | @borg.on(events.NewMessage(pattern=r"\.earth", outgoing=True)) 10 | async def _(event): 11 | if event.fwd_from: 12 | return 13 | deq = deque(list("🌏🌍🌎🌎🌍🌏🌍🌎")) 14 | for _ in range(48): 15 | await asyncio.sleep(0.1) 16 | await event.edit("".join(deq)) 17 | deq.rotate(1) 18 | 19 | -------------------------------------------------------------------------------- /userbot/plugins/clock.animation.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/list_user_names_reserved_by_me.py: -------------------------------------------------------------------------------- 1 | # For @UniBorg 2 | # (c) Shrimadhav U K 3 | 4 | from telethon import events, functions, types 5 | import asyncio 6 | 7 | 8 | @borg.on(events.NewMessage(pattern=r"\.listmy", outgoing=True)) 9 | async def _(event): 10 | if event.fwd_from: 11 | return 12 | result = await borg(functions.channels.GetAdminedPublicChannelsRequest()) 13 | output_str = "" 14 | for channel_obj in result.chats: 15 | output_str += f"- {channel_obj.title} @{channel_obj.username} \n" 16 | await event.edit(output_str) 17 | -------------------------------------------------------------------------------- /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/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: .scha