This method is an initialization method called by the constructor inherited from Bot::BasicBot::Pluggable::Module. The plugin object itself is instantiated by the load method in Bot::BasicBot::Pluggable.

The initialization comprises the entire functionality of this plugin. The real work is done by the POE pieces and the ClientInput callback.

We instantiate a new POE::Component::Server::TCP object that utilizes a YAML serializer via POE::Filter::Reference. The TCP server expects to receive a hashref that is passed directly to the bot's say method.