fix chatbot ai (#450)

This commit is contained in:
HYBRID
2024-07-14 17:17:02 +05:30
committed by GitHub
parent b1b443245a
commit 01f5fcc2a8

View File

@@ -438,16 +438,16 @@ async def get_google_images(query):
return google_images
# Thanks https://t.me/KukiUpdates/23 for ChatBotApi
# Thanks https://t.me/ImSafone for ChatBotApi
async def get_chatbot_reply(message):
chatbot_base = "https://kuki-api-lac.vercel.app/message={}"
chatbot_base = "https://api.safone.dev/chatbot?query={}"
req_link = chatbot_base.format(
message,
)
try:
return (await async_searcher(req_link, re_json=True)).get("reply")
return (await async_searcher(req_link, re_json=True)).get("response")
except Exception:
LOGS.info(f"**ERROR:**`{format_exc()}`")