mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-05 11:44:50 +00:00
Update chatbot_ai.py
This commit is contained in:
parent
5d5121e4f1
commit
1193e1877c
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ async def gpt4_chatbot(self, ctx: Message, strings):
|
||||||
}
|
}
|
||||||
response = await fetch.post("https://duckduckgo.com/duckchat/v1/chat", headers=headers, json=data)
|
response = await fetch.post("https://duckduckgo.com/duckchat/v1/chat", headers=headers, json=data)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
|
self.log.info(response.text)
|
||||||
return await msg.edit_msg(f"ERROR: Status Code {response.status_code}")
|
return await msg.edit_msg(f"ERROR: Status Code {response.status_code}")
|
||||||
messages = []
|
messages = []
|
||||||
for line in response.text.splitlines():
|
for line in response.text.splitlines():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue