1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 17:45:40 -04:00
perlbuut/plugins/shorten.pm
2015-12-14 00:19:37 -05:00

14 lines
277 B
Perl

no warnings 'void';
sub {
my( $said, $pm ) = @_;
use WWW::Shorten::TinyURL;
use WWW::Shorten 'TinyURL';
print WWW::Shorten::TinyURL::makeashorterlink($said->{body}) // $said->{body};
}
__DATA__
shorten <url> returns the "short form" of a url. Defaults to using tinyurl.