Simple xml examples & guide for the setup of the metis bot for WinMx
So now lets move on to the /opmsg commands these are:<OnEnter>...</OnEnter> <OnLeave>...</OnLeave>
These work in a slightly different way to the <command>...</command>, as the <OnEnter> ...</OnEnter> is both the start and end of the command, but also the TRIGGER for the command. So you only need the <out>...</out> within the command structure here. The trigger being the actual event. EG: the above is activated whenever some one enters the room. The <OnLeave> ... </OnLeave> activates whenever some one leaves the room, the <OnJoinRoom> ...</OnJoinRoom> is activated when your bot enters a room.REMEMBER your bot HAS to be admined for these to work!
Now lets look at simple 1 line response commands for the above.
<out> Hello there</out>
<out> Wow did you see that name change ?</out>