diff --git a/userbot/plugins/alive.py b/userbot/plugins/alive.py index 1dc184eac9..8d0583c883 100644 --- a/userbot/plugins/alive.py +++ b/userbot/plugins/alive.py @@ -67,7 +67,7 @@ async def amireallyalive(event): _, check_sgnirts = check_data_base_heal_th() EMOJI = gvarstatus("ALIVE_EMOJI") or "〣 " # ================================================ - api_url = f"https://animechan.xyz/api/random" + api_url = requests.get("https://waifu.it/api/v4/quote", headers={"Authorization": "NDE0OTk4MTA0MzQyMDAzNzIz.MTcxODQyNDM5NA--.ab7207fceb",},) try: response = requests.get(api_url).json() except Exception: diff --git a/userbot/plugins/anilist.py b/userbot/plugins/anilist.py index 6648139162..3182099204 100644 --- a/userbot/plugins/anilist.py +++ b/userbot/plugins/anilist.py @@ -73,9 +73,9 @@ ) async def anime_quote(event): "Get random anime quotes" - data = requests.get("https://animechan.xyz/api/random").json() + data = requests.get("https://waifu.it/api/v4/quote", headers={"Authorization": "NDE0OTk4MTA0MzQyMDAzNzIz.MTcxODQyNDM5NA--.ab7207fceb",},).json() anime = data["anime"] - character = data["character"] + character = data["author"] quote = data["quote"] await edit_or_reply( event,