Morris::Plugin - Base Class For Morris Plugin
package MyPlugin; use Moose; use namespace::clean -except => qw(meta); extends 'Morris::Plugin'; after register => sub { my ($self, $conn) = @_; # Do whatever initialization requied # Register which hook you want to respond to $conn->register_hook( 'chat.privmsg', # hook name sub { my $msg = shift; # Do whatever } ); };
To install Morris, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Morris
CPAN shell
perl -MCPAN -e shell install Morris
For more information on module installation, please visit the detailed CPAN module installation guide.