Update chatbot_ai.py

This commit is contained in:
yasirarism 2023-06-10 11:56:55 +07:00 committed by GitHub
parent 55a2eee77c
commit ba5e961457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ async def bard_chatbot(self: Client, ctx: Message, strings):
data = {'message': ctx.input, 'session_id':'XAjzKUFvf_nQtNg4bt0pG54rCLnaWeJFE1_FXuQnVjNyfmjDhkKZyoqXqW5cgBmmnf8Eqg.'}
try:
req = await http.post("https://bard-api-rho.vercel.app/ask", json=data)
await msg.edit_msg(req.get("content"))
await msg.edit_msg(req.json().get("content"))
except Exception as e:
await msg.edit_msg(str(e))