Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created August 16, 2010 12:56
Show Gist options
  • Save tadzik/526900 to your computer and use it in GitHub Desktop.
Save tadzik/526900 to your computer and use it in GitHub Desktop.
package xmpbot::Plugin::Echo;
use Moose;
with 'xmpbot::Plugin';
sub BUILD {
my $self = shift;
$self->register_command('echo');
}
sub echo {
my ($self, $msg) = @_;
return $msg;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment