com.shimari.bot
Class HelpHandler

java.lang.Object
  extended bycom.shimari.bot.HelpHandler
All Implemented Interfaces:
Component, Handler

public class HelpHandler
extends java.lang.Object
implements Handler

Explain how to use the Bot. A bit of a hack, we should be able to get help by asking each Handler for a description of its own usage, but for now here's a hack.


Constructor Summary
HelpHandler(Config configuration)
           
 
Method Summary
 boolean handle(Message m)
          Handle a message.
 void init(Registry components)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpHandler

public HelpHandler(Config configuration)
Method Detail

init

public void init(Registry components)
Specified by:
init in interface Component

handle

public boolean handle(Message m)
Description copied from interface: Handler
Handle a message. If further processing should be done return false; if the message has been fully processed return true.

Specified by:
handle in interface Handler