The original idea was to have SCAR send and recieve SQL-queries via php. The SQL database (ChatBase) contains full convos, all you need to do is "hook" onto a convo and synchronise
Private Chat with another bot. The synchronisation is all handled by the server, and all SCAR recieves are strings of text.
We skipped the project since is was difficult to maintain synchronisation when multiple requests recieved at servers door. I gave pwnaz0r the original ChatBase sql-database and he has made this wonderful looking apparatus.
I think all you need to do to make your thing work pwnaz0r, is give the opposite party a signal for a convo (a letter of the alphabet perhaps?, and convo "more or less synchronised". Note that a system like this can overtake your script and can thus mess up timing, so make it short. The sequence would be:
RC <- checks for logging in of friends and is part of findnormalrandoms
- A friend logs in (RC)
- Goto friendslist
- Send first private msg (Letter of alphabet)
- Start convo
- Set time out and inc(Chat) and return to script.
You could still get the text from a server, or central stored textfiles, or even live from a irc-channel, lots of possibilities here :)
But did you have in mind pwnaz0r to further develop this?
Great looking code, btw :)