Hello,
I made a very basic script meant to encourage msl scripters to take it wherever they would like. It is intended to help people get over the hump of making API calls to openai so it's not bulletproof or feature packed but is instead quick and dirty. You can check it out here:
https://github.com/sam-hiatt/Simple-chatgpt-mirc/