Not sure if this belongs here or in scripting -

I'm working on an external program to act as a bot for a channel, using SendMessage() to communicate to mIRC, and log files to communicate to the program. Now, monitoring log files... works, sort of, but it's horribly clumsy. So with that in mind, does mIRC have anything I could use to communicate with the bot directly?