forked from xditya/TeleBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Telebot-beta
- Loading branch information
Showing
33 changed files
with
2,054 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#Made By @TeleBotComms Keep Credits If You Are Goanna Kang This Lol | ||
|
||
#And Thanks To The Creator Of Autopic This Script Was Made from Snippets From That Script | ||
|
||
#Usage .actressdp Im Not Responsible For Any Ban caused By This | ||
|
||
import requests , re , random | ||
|
||
import urllib , os | ||
|
||
from telethon.tl import functions | ||
|
||
from datetime import datetime | ||
|
||
from PIL import Image, ImageDraw, ImageFont | ||
|
||
from userbot.utils import admin_cmd | ||
|
||
import asyncio | ||
|
||
from time import sleep | ||
|
||
COLLECTION_STRING = [ | ||
|
||
"indian-actress-wallpapers", | ||
|
||
"latest-bollywood-actress-wallpapers-2018-hd", | ||
|
||
"bollywood-actress-wallpaper", | ||
|
||
"hd-wallpapers-of-bollywood-actress", | ||
|
||
"new-bollywood-actress-wallpaper-2018" | ||
|
||
] | ||
|
||
async def animepp(): | ||
|
||
os.system("rm -rf donot.jpg") | ||
|
||
rnd = random.randint(0, len(COLLECTION_STRING) - 1) | ||
|
||
pack = COLLECTION_STRING[rnd] | ||
|
||
pc = requests.get("http://getwallpapers.com/collection/" + pack).text | ||
|
||
f = re.compile('/\w+/full.+.jpg') | ||
|
||
f = f.findall(pc) | ||
|
||
fy = "http://getwallpapers.com"+random.choice(f) | ||
|
||
print(fy) | ||
|
||
if not os.path.exists("f.ttf"): | ||
|
||
urllib.request.urlretrieve("https://github.com/rebel6969/mym/raw/master/Rebel-robot-Regular.ttf","f.ttf") | ||
|
||
urllib.request.urlretrieve(fy,"donottouch.jpg") | ||
|
||
@borg.on(admin_cmd(pattern="actressdp ?(.*)")) | ||
|
||
async def main(event): | ||
|
||
await event.edit("**Starting Actress Profile Pic...\n\nDone !!! Check Your DP in 5 seconds. \n By [TeleBot](https://github.com/xditya/TeleBot)**") | ||
|
||
while True: | ||
|
||
await animepp() | ||
|
||
file = await event.client.upload_file("donottouch.jpg") | ||
|
||
await event.client(functions.photos.UploadProfilePhotoRequest( file)) | ||
|
||
os.system("rm -rf donottouch.jpg") | ||
|
||
await asyncio.sleep(600) #Edit this to your required needs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#Made By @TeleBotHelp Keep Credits If You Are Goanna Kang This Lol | ||
|
||
#And Thanks To The Creator Of Autopic This Script Was Made from Snippets From That Script | ||
|
||
#Usage .actressdp Im Not Responsible For Any Ban caused By This | ||
|
||
import requests , re , random | ||
|
||
import urllib , os | ||
|
||
from telethon.tl import functions | ||
|
||
from datetime import datetime | ||
|
||
from PIL import Image, ImageDraw, ImageFont | ||
|
||
from userbot.utils import admin_cmd | ||
|
||
import asyncio | ||
|
||
from time import sleep | ||
|
||
COLLECTION_STRING = [ | ||
|
||
"cute-anime-wallpapers-hd", | ||
|
||
"anime-christmas-wallpaper-hd", | ||
|
||
"anime-samurai-girl-wallpaper", | ||
|
||
"4k-anime-wallpapers", | ||
|
||
"2560-x-1440-wallpaper-anime" | ||
|
||
] | ||
|
||
async def animepp(): | ||
|
||
os.system("rm -rf donot.jpg") | ||
|
||
rnd = random.randint(0, len(COLLECTION_STRING) - 1) | ||
|
||
pack = COLLECTION_STRING[rnd] | ||
|
||
pc = requests.get("http://getwallpapers.com/collection/" + pack).text | ||
|
||
f = re.compile('/\w+/full.+.jpg') | ||
|
||
f = f.findall(pc) | ||
|
||
fy = "http://getwallpapers.com"+random.choice(f) | ||
|
||
print(fy) | ||
|
||
if not os.path.exists("f.ttf"): | ||
|
||
urllib.request.urlretrieve("https://github.com/rebel6969/mym/raw/master/Rebel-robot-Regular.ttf","f.ttf") | ||
|
||
urllib.request.urlretrieve(fy,"donottouch.jpg") | ||
|
||
@borg.on(admin_cmd(pattern="animedp ?(.*)")) | ||
|
||
async def main(event): | ||
|
||
await event.edit("**Starting Anime Profile Pic...\n\nDone !!! Check Your DP in 5 seconds. By [TeleBot](https://github.com/xditya/TeleBot)**") | ||
|
||
while True: | ||
|
||
await animepp() | ||
|
||
file = await event.client.upload_file("donottouch.jpg") | ||
|
||
await event.client(functions.photos.UploadProfilePhotoRequest( file)) | ||
|
||
os.system("rm -rf donottouch.jpg") | ||
|
||
await asyncio.sleep(600) #Edit this to your required needs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,40 @@ | ||
"""Auto Profile Updation Commands | ||
.autoname""" | ||
|
||
from telethon import events | ||
|
||
import asyncio | ||
|
||
import time | ||
|
||
from telethon.tl import functions | ||
|
||
from telethon.errors import FloodWaitError | ||
|
||
from uniborg.util import admin_cmd | ||
from userbot import ALIVE_NAME | ||
|
||
DEL_TIME_OUT = 70 | ||
|
||
@borg.on(admin_cmd(pattern="autoname")) # pylint:disable=E0602 | ||
DEL_TIME_OUT = 60 | ||
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "TeleBot" | ||
|
||
async def _(event): | ||
|
||
@borg.on(admin_cmd(pattern="autoname")) # pylint:disable=E0602 | ||
async def _(event): | ||
if event.fwd_from: | ||
|
||
return | ||
|
||
while True: | ||
|
||
DM = time.strftime("%d-%m-%y") | ||
|
||
HM = time.strftime("%H:%M") | ||
|
||
name = f"{HM} Aditya 🇮🇳 {DM}" | ||
|
||
name = f"🕒{HM} ⚡{DEFAULTUSER}⚡ {DM} 🗓️" | ||
logger.info(name) | ||
|
||
try: | ||
|
||
await borg(functions.account.UpdateProfileRequest( # pylint:disable=E0602 | ||
|
||
first_name=name | ||
|
||
)) | ||
|
||
except FloodWaitError as ex: | ||
|
||
logger.warning(str(e)) | ||
|
||
await asyncio.sleep(ex.seconds) | ||
|
||
|
||
|
||
# else: | ||
|
||
# logger.info(r.stringify()) | ||
|
||
# await borg.send_message( # pylint:disable=E0602 | ||
|
||
# Config.PRIVATE_GROUP_BOT_API_ID, # pylint:disable=E0602 | ||
|
||
# "Successfully Changed Profile Name" | ||
|
||
# ) | ||
|
||
await asyncio.sleep(DEL_TIME_OUT) | ||
|
||
await event.edit(f"Auto Name has been started Master") | ||
|
||
await event.edit(f"Auto Name has been started...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.