update entertainment.py
This commit is contained in:
parent
7eae2a1983
commit
fd52bc1c3a
@ -4,11 +4,12 @@
|
||||
import requests
|
||||
from pyrogram import Client
|
||||
|
||||
from config import BOT_USERNAME
|
||||
# from config import Veez.BOT_USERNAME
|
||||
from config import Veez
|
||||
from helpers.filters import command
|
||||
|
||||
|
||||
@Client.on_message(command(["asupan", f"asupan@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["asupan", f"asupan@{Veez.BOT_USERNAME}"]))
|
||||
async def asupan(client, message):
|
||||
try:
|
||||
resp = requests.get("https://api-tede.herokuapp.com/api/asupan/ptl").json()
|
||||
@ -19,7 +20,7 @@ async def asupan(client, message):
|
||||
print(ex)
|
||||
|
||||
|
||||
@Client.on_message(command(["wibu", f"wibu@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["wibu", f"wibu@{Veez.BOT_USERNAME}"]))
|
||||
async def wibu(client, message):
|
||||
try:
|
||||
resp = requests.get("https://api-tede.herokuapp.com/api/asupan/wibu").json()
|
||||
@ -30,7 +31,7 @@ async def wibu(client, message):
|
||||
await message.reply_text("failed to get wibu from server...")
|
||||
|
||||
|
||||
@Client.on_message(command(["chika", f"chika@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["chika", f"chika@{Veez.BOT_USERNAME}"]))
|
||||
async def chika(client, message):
|
||||
try:
|
||||
resp = requests.get("https://api-tede.herokuapp.com/api/chika").json()
|
||||
@ -41,7 +42,7 @@ async def chika(client, message):
|
||||
await message.reply_text("failed to get chika from server...")
|
||||
|
||||
|
||||
@Client.on_message(command(["truth", f"truth@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["truth", f"truth@{Veez.BOT_USERNAME}"]))
|
||||
async def truth(_, message):
|
||||
try:
|
||||
resp = requests.get("https://api-tede.herokuapp.com/api/truth-en").json()
|
||||
@ -52,7 +53,7 @@ async def truth(_, message):
|
||||
await message.reply_text("something went wrong...")
|
||||
|
||||
|
||||
@Client.on_message(command(["dare", f"dare@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["dare", f"dare@{Veez.BOT_USERNAME}"]))
|
||||
async def dare(_, message):
|
||||
try:
|
||||
resp = requests.get("https://api-tede.herokuapp.com/api/dare-en").json()
|
||||
@ -63,7 +64,7 @@ async def dare(_, message):
|
||||
await message.reply_text("something went wrong...")
|
||||
|
||||
|
||||
@Client.on_message(command(["lyric", f"lyric@{BOT_USERNAME}"]))
|
||||
@Client.on_message(command(["lyric", f"lyric@{Veez.BOT_USERNAME}"]))
|
||||
async def lirik(_, message):
|
||||
rep = await message.reply_text("🔎 **searching lyrics...**")
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user