fix chatbot ai (#450)
This commit is contained in:
@@ -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()}`")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user