Reply code

Bot now has code to act on input.