'AJAX_CHAT_CHATBOT' is merely specifying the class of the user so that the chat knows what scheme to use when they post, and what permissions that the account has, so this doesn't need to be changed.
The Function I posted from AjaxChat.php is already present there, my suggestion is to duplicate this function but rename it and fix the Chatbot call to the ChatBot2 call.
There will be some finagling with the code to make it work correctly, but just do it one step at a time.
If I can find time between buying a house, preparing for a wedding, and planning a huge organized auto-meet I'll try to whip something up in my test chat.