lib/IRC/Bot/Hangman/Response/Profanity.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
responses
1.0
CRAP 1.0
« lib/IRC/Bot/Hangman/Response/Default.pm ↑ Summary lib/IRC/Bot/Hangman/WordList/Default.pm »
1 =head1 NAME
2  
3 IRC::Bot::Hangman::Response::Profanity - Profanity hangman responses
4  
5 =head1 SYNOPSIS
6  
7 See IRC::Bot::Hangman
8  
9 =head1 DESCRIPTION
10  
11 This module is a plugin engine providing
12 responses when a profanity has been muttered.
13  
14 =cut
15  
16 package IRC::Bot::Hangman::Response::Profanity;
17 1 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20  
21  
22 =head1 METHODS
23  
24 =head2 name()
25  
26 This plugin name - 'profanity'
27  
28 =cut
29  
30 sub name () { 'profanity' }
31  
32  
33 =head2 responses()
34  
35 List of responses per type
36  
37 =cut
38  
39 1 ▶sub responses {
Subroutine responses: called CC=1 SCAR=0.0
Pod documented
40 return {
41 1 profanity => [
42 'No profanity please',
43 'This is a rather rude comment',
44 'Are you being rude?',
45 'This is shocking',
46 ],
47 };
48 }
49  
50 1 1;
51  
52  
53 =head1 AUTHOR
54  
55 Pierre Denis <pierre@itrelease.net>
56  
57 http://www.itrelease.net/
58  
59 =head1 COPYRIGHT
60  
61 Copyright 2005 IT Release Ltd - All Rights Reserved.
62  
63 This module is released under the same license as Perl itself.
64  
65 =cut
« lib/IRC/Bot/Hangman/Response/Default.pm ↑ Summary lib/IRC/Bot/Hangman/WordList/Default.pm »