User:IlyaHaykinson/Wikinewsbot/SampleConfig

<?xml version="1.0" encoding="utf-8" ?> 
<bot name="testbot">
	<command id="bot:set">
		<input>
			<in name="wiki" value="www.ilya.us" />
			<in name="user" value="someusername" />
			<in name="pass" value="thepassword" />
		</input>
		<output>
			<out name="wiki" target="$$wikihost" />
			<out name="user" target="$$username" />
			<out name="pass" target="$$password" />
		</output>
	</command>
	<command id="bot:connect" />
	<command id="wiki:login">
		<input>
			<in name="username" value="$$username" />
			<in name="password" value="$$password" />
		</input>
		<output>
			<out name="loginsuccess" target="$loginsuccess" />
		</output>
	</command>
	<!-- 
	<command id="wiki:uploadimage">
		<conditions>
			<if value="$loginsuccess" relation="equals" test="True" false="bot:exit" />
		</conditions>
		<input>
			<in name="Description" value="test image upload" />
			<in name="MimeType" value="image/jpeg" />
			<in name="Path" value="C:\Documents and Settings\Administrator\My Documents\My Pictures\screenshot.jpg" />
		</input>	
	</command>
	-->
	<command id="wiki:getpage">
		<conditions>
			<if value="$loginsuccess" relation="equals" test="True" false="bot:exit" />
		</conditions>
		<input>
			<in name="namespace" value="User" />
			<in name="page" value="$$username" />
		</input>
		<output>
			<out name="page" target="$page" />
		</output>
	</command>
	<command id="wikipage:replacecontent">
		<input>
			<in name="page" value="$page" />
			<in name="content">
				new content [[link]] woohoo
			</in>
		</input>
	</command>
	<command id="wiki:savepage">
		<conditions>
			<if value="$page" relation="isset" false="exit" />
		</conditions>
		<input>
			<in name="namespace" value="User" />
			<in name="page" value="$$username" />
			<in name="pagedata" value="$page" />
			<in name="summary">Update page to have some text</in>
		</input>
	</command>
	<command id="bot:exit" />
</bot>