NAME
App::Dataninja::Bot::Plugin - base class for App::Dataninja plugins
SYNOPSIS
around 'command_setup' => sub {
my $orig = shift;
my $self = shift;
$self->command(
command => sub { "output" }
);
};
DESCRIPTION
App::Dataninja plugins use Module::Pluggable as the backend. This class contains the necessary data that every plugin needs. It also contains some sugar to improve readability.
METHODS
command
Usage: command(command => coderef)
This method adds a dispatcher rule. It is run in the command_setup
method.
command_setup
This method is meant to be overridden with the around
method modifier. It is called at build time and is meant to contain all the command information.
CURRENT PLUGINS
Botsnack
CalcRelay
Colors
Daysuntil
Echo
Jobs
Last
Remind
Seen
Task
Translating
Twentyfour
Twitter
Unit
Weather
Weeksuntil