Traditionally, code for already-made robots has been difficult to find
- you actually have to email the bot author to recieve it. However,
bot frameworks are at http://sourceforge.net/projects/pywikipediabot in Python and at http://sourceforge.net/projects/phpwikipediabot in PHP. (The PHP thing is my own; I'm planning to release the cron library soon, which has all the neat files I used to run en:User:Grammarbot)
What I meant is an interface from the MediaWiki standpoint which would upon request easy-to-parse data for the bot, rather than having to scrape the html (which is 95%+ irrelivant to what one would want to do with a bot)