Bot::Net::Script::Server - Create a new server


Bot-Net documentation  | view source Contained in the Bot-Net distribution.

Index


NAME

Top

Bot::Net::Script::Server - Create a new server

SYNOPSIS

Top

  bin/botnet server --name <server name> [ <options> ]

DESCRIPTION

Top

This script create the required class and configuration for a new bot server. Bot servers are used to host groups of bots (and possibly humans) where they can interact. This will also help build stubs for tests.

If you only specify the server name, a vanilla server will be created. This server will use Bot::Net::Server, but no other mixins. This is probably not what you want. The options can be used to either clone another server you already have available in your bot net application or add additional mixins.

OPTIONS

Top

  --name <server name>      - The name of the server class to create
  --mixin <mixin name>      - The name of the server mixin to add to the class. 
                              You may use this option multiple times to add 
                              multiple mixins.
  --clone <server name>     - The name of an existing server to clone from. By 
                              using this option, the new server will inherit
                              from the existing server and receive a copy of 
                              the original server's configuration.

METHODS

Top

options

Returns the arguments used by this script. See App::CLI::Command.

run

Create the server class and associated files.

SYNOPSIS

Top

  bin/botnet run --server $self->{name}

DESCRIPTION

Top

A host for semi-autonomous agents. This documentation needs replacing.

AUTHORS

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Bot-Net documentation  | view source Contained in the Bot-Net distribution.