blib/lib/Bot/IRC/X/ManagementSpeak.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Bot::IRC::X::ManagementSpeak;
2 # ABSTRACT: Bot::IRC plugin for rendering management-speak
3  
4 2 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use exact;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Lingua::ManagementSpeak;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '1.07'; # VERSION
10  
11 1 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
12 1 my ($bot) = @_;
13  
14 1 my $ms = Lingua::ManagementSpeak->new;
15  
16 $bot->hook(
17 {
18 to_me => 1,
19 text => qr/^mspeak/i,
20 },
21 1 ▶ sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
22 1 my ( $bot, $in, $m ) = @_;
23 1 $bot->reply( $ms->paragraph(4) );
24 },
25 1 );
26  
27 1 $bot->helps( mspeak => 'Return managerial-sounding text. Usage: <bot> mspeak.' );
28 }
29  
30 2 1;
31  
32 __END__
↑ Summary