I decided to make ICQ-bot, mostly for ping servers in home network using ICQ.
Micq has such power thing as scripting. By default, named pipe ~/.micq/scripting is created after micq has started. If you write into it, this is as if you enter into micq console. Thus we have one side of interaction. To receive commands we'll read logs of conversations from history dir.