Silly/MakeMoneyAtHome.pm

filter: Statementstmt 44.4% 12 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 0.0% 0 / 4 totaltotal 40.0% 16 / 40 SCAR 10.3
CC
2
Cov
41%
Bot_public_cmd_makemoney
6.0
Cobalt_register
2.0
Cobalt_unregister
2.0
CRAP 2.8
« Silly/BoneEasy.pm ↑ Summary Silly/OutputLOLCAT.pm »
1 package Bot::Cobalt::Plugin::Silly::MakeMoneyAtHome;
2 1 $Bot::Cobalt::Plugin::Silly::MakeMoneyAtHome::VERSION = '0.031001';
3 1 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Bot::Cobalt::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Acme::MakeMoneyAtHome;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶sub new { bless [], shift }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
10  
11 sub Cobalt_register {
12 0 ▶ my ($self, $core) = splice @_, 0, 2;
Subroutine Cobalt_register: not called CC=1 SCAR=6.9
Pod undocumented
13
14 0 $core->plugin_register( $self, SERVER => 'public_cmd_makemoney' );
15
16 0 $core->log->info("Loaded");
17  
18 0 return PLUGIN_EAT_NONE
19 }
20  
21 sub Cobalt_unregister {
22 0 ▶ my ($self, $core) = splice @_, 0, 2;
Subroutine Cobalt_unregister: not called CC=1 SCAR=6.9
Pod undocumented
23  
24 0 $core->log->info("Unloaded");
25  
26 0 return PLUGIN_EAT_NONE
27 }
28  
29 sub Bot_public_cmd_makemoney {
30 0 ▶ my ($self, $core) = splice @_, 0, 2;
Subroutine Bot_public_cmd_makemoney: not called CC=2 SCAR=17.9
Pod undocumented
31  
32 0 my $msg = ${ $_[0] };
33 0 my $context = $msg->context;
34  
35 0 my $resp = make_money_at_home;
36  
37 0 my $channel = $msg->channel;
38  
39 0 ▶ $core->send_event( 'send_message',
Branch: 1 branch
BranchTrueFalseTotal
if $resp 0 0 0
40 $context,
41 $channel,
42 $resp
43 ) if $resp;
44
45 0 return PLUGIN_EAT_ALL
46 }
47  
48 1 1;
49 __END__
« Silly/BoneEasy.pm ↑ Summary Silly/OutputLOLCAT.pm »