initial commit

This commit is contained in:
konrad 2023-03-20 12:37:57 +00:00
parent 6a173b538a
commit 77e24a5faf
1 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,6 @@ port = 6667
channel = "#irc"
nickname = "MyBot"
```
Optionally you can edit the engine, the list of compatible engines below:
```
engine="text-davinci-003",
```
IMPORTANT: When you specify "nickname", make sure you replace ALL occurences of ChatGPT in chatgpt.py file to the new nickname. For example, if your bot nick name is "MyBot", do:
```
$ sed -i 's/ChatGPT/MyBot/g' chatgpt.py
@ -43,6 +39,10 @@ https://platform.openai.com/docs/api-reference/completions
frequency_penalty=0,
presence_penalty=0
```
Also you can edit the engine, the list of compatible engines below:
```
engine="text-davinci-003",
```
### Connecting bot to IRC server:
```
$ python3 chatgpt.py