diff --git a/bot/entertainment.py b/bot/entertainment.py index 750ebb0..2fa1a9f 100644 --- a/bot/entertainment.py +++ b/bot/entertainment.py @@ -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: