https://pypi.org/project/chatgpt-bot/
I can probably publish the code somewhere, if you're interested.