-
Notifications
You must be signed in to change notification settings - Fork 5
/
adultzone.py
38 lines (35 loc) · 1.6 KB
/
adultzone.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#credits to userge
#ported to LEGENDBOT by @legendx22
#will be adding more soon
import os, urllib, requests, asyncio
from ULTRA.utils import admin_cmd,edit_or_reply, sudo_cmd
@bot.on(admin_cmd("boobs$"))
@bot.on(sudo_cmd(pattern="boobs$", allow_sudo=True))
async def boobs(event):
if not os.path.isdir(Var.TEMP_DOWNLOAD_DIRECTORY):
os.makedirs(Var.TEMP_DOWNLOAD_DIRECTORY)
pic_loc = os.path.join(Var.TEMP_DOWNLOAD_DIRECTORY, "bobs.jpg")
a = await event.reply("Finding some big boobs for u 🧐")
await asyncio.sleep(0.5)
await a.edit("Sending some big boobs🤪")
nsfw = requests.get('http://api.oboobs.ru/noise/1').json()[0]["preview"]
urllib.request.urlretrieve("http://media.oboobs.ru/{}".format(nsfw), pic_loc)
await event.client.send_file(event.chat_id, pic_loc, force_document=False)
os.remove(pic_loc)
await event.delete()
await a.delete()
@bot.on(admin_cmd("butts$"))
@bot.on(sudo_cmd(pattern="butts$", allow_sudo=True))
async def butts(event):
if not os.path.isdir(Var.TEMP_DOWNLOAD_DIRECTORY):
os.makedirs(Var.TEMP_DOWNLOAD_DIRECTORY)
pic_loc = os.path.join(Var.TEMP_DOWNLOAD_DIRECTORY, "butts.jpg")
a = await event.reply("Finding some beautiful butts for u🧐")
await asyncio.sleep(0.5)
await a.edit("Sending some beautiful butts🤪")
nsfw = requests.get('http://api.obutts.ru/noise/1').json()[0]["preview"]
urllib.request.urlretrieve("http://media.obutts.ru/{}".format(nsfw), pic_loc)
await event.client.send_file(event.chat_id, pic_loc, force_document=False)
os.remove(pic_loc)
await event.delete()
await a.delete()