dann > Bot-BasicBot-Pluggable-WithConfig > Bot::BasicBot::Pluggable::WithConfig

Download:
Bot-BasicBot-Pluggable-WithConfig-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Bot::BasicBot::Pluggable::WithConfig - initialize bot instance with YAML config

SYNOPSIS ^

Create a new Bot with YAML file.

  use Bot::BasicBot::Pluggable::WithConfig;

  my $bot = Bot::BasicBot::Pluggable->new_with_config(
    config => '/etc/pluggablebot.yaml'
  );

  ex) YAML configuration
  server:   irc.example.net
  port:     6667
  nick:     pluggablebot
  username: pluggablebot
  charset:  utf-8
  store:
    type:  Bot::BasicBot::Pluggable::Store::DBI
    dsn:   dbi:SQLite:dann.db
    table: pluggablebot
  modules:
    - module: Karma
    - module: Seen
    - module: Infobot
    - module: Title
  channels:
    - #pluggablebot

DESCRIPTION ^

Bot::BasicBot::Pluggable::WithConfig is instance creator with config file

AUTHOR ^

Takatoshi Kitano <kitano.tk {at} gmail.com>

SEE ALSO ^

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: