diff --git a/chatbot/plugins/response.py b/chatbot/plugins/response.py index 9495ba2..7e12ac4 100644 --- a/chatbot/plugins/response.py +++ b/chatbot/plugins/response.py @@ -3,7 +3,7 @@ async def get_response(query): async with aiohttp.ClientSession() as ses: async with ses.post( - f'https://endpoint.mannu.me/?query={query}' + f'http://api.brainshop.ai/get?bid=178&key=sX5A2PcYZbsN5EY6&uid=1&msg={query}' ) as resp: answer = await resp.json() - return answer['response']['bot'] \ No newline at end of file + return answer['cnt']