This PY script based on model gpt-3.5-turbo but you can change or add to the code yourself. You can also create a PR to improve
Replace your Discord Token and OpenAI API Key in config.json
{
"TOKEN": "YOUR_TOKEN",
"API_KEY":"YOUR_API_KEY"
}
enjoy!