print multiple lines of response from the OpenAI API

This commit is contained in:
konrad 2023-03-20 20:48:51 +00:00
parent 527008a9ee
commit 7edf97bb08
1 changed files with 0 additions and 1 deletions

View File

@ -38,5 +38,4 @@ while True:
answers = response.choices[0].text.strip().split('\n')
for answer in answers:
irc.send(bytes("PRIVMSG " + channel + " :" + answer.strip() + "\n", "UTF-8"))
irc.send(bytes("PRIVMSG " + channel + " :" + answer + "\n", "UTF-8"))
time.sleep(1)