Skip to content

Commit

Permalink
fix chatbot ai (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridvamp authored Jul 14, 2024
1 parent b1b4432 commit 01f5fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyUltroid/fns/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`")

Expand Down

0 comments on commit 01f5fcc

Please sign in to comment.