Skip to content

Commit

Permalink
another anime quotes api
Browse files Browse the repository at this point in the history
  • Loading branch information
prono69 committed Jun 26, 2024
1 parent ad4f3d4 commit 5982321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion userbot/plugins/alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions userbot/plugins/anilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5982321

Please sign in to comment.