I found some starting code here: http://wikisum.com/w/User:Adam/Creating_MediaWiki_bots_in_PHP

about creating a PHP MediaWiki Bot, but I need help customizing it.

Fortunatley, the bot is simple.

I need it to check Project:Sandbox check the source to see if it has been modified from its default version, if so restore it to the default version. Then I will run the bot via cron jobs to reset the Sandbox page every few hours.

RyanB88

05-15-2008, 09:20 PM

any ideas on how do do this?

This the the defualt page content

<!-- PLEASE DO NOT EDIT THIS --> {{Sandbox Head}}
<!-- THE SANDBOX IS PURGED EVERY 12 HOURS BUT OTHER USERS MAY REMOVE CONTENT BEFORE THEN -->
<!-- PLEASE DO NOT PLACE COPYRIGHTED, OFFENSIVE, OR LIBELOUS CONTENT HERE ->
<!-- YOU MAY BEGIN EDITING BELOW THIS LINE -->