the easiest way to make irc commands and bots is by using the built in mirc scripting language.
use mirc help (press F1) for more information on this.
the bots lw uses for echoing and the ?away commands are made in php which is alot more complicated and isnt just used for making irc stuff