| 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 | ||