forked from TeamUltroid/UltroidAddons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asupan.py
48 lines (36 loc) · 1.23 KB
/
asupan.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
39
40
41
42
43
44
45
46
47
48
# Made by: @tofik_dn for Ultroid - UserBot
"""
✘ Commands Available -
• `{i}asupan`
To send random intake video.
• `{i}wibu`
To send a random wibu video.
• `{i}chika`
To send a random chikakiku video.
"""
import requests
from . import *
@ultroid_cmd(pattern="asupan ?(.*)")
async def _(event):
try:
response = requests.get("https://api-tede.herokuapp.com/api/asupan/ptl").json()
await event.client.send_file(event.chat_id, response["url"])
await event.delete()
except Exception:
await eor(event, "`Something went wrong LOL...`")
@ultroid_cmd(pattern="wibu ?(.*)")
async def _(event):
try:
response = requests.get("https://api-tede.herokuapp.com/api/asupan/wibu").json()
await event.client.send_file(event.chat_id, response["url"])
await event.delete()
except Exception:
await eor(event, "`Something went wrong LOL...`")
@ultroid_cmd(pattern="chika ?(.*)")
async def _(event):
try:
response = requests.get("https://api-tede.herokuapp.com/api/chika").json()
await event.client.send_file(event.chat_id, response["url"])
await event.delete()
except Exception:
await eor(event, "`Something went wrong LOL...`")