| 1 | =head1 NAME | ||
| 2 | |||
| 3 | IRC::Bot::Hangman::Response::Default - Default 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 | the default responses. | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | package IRC::Bot::Hangman::Response::Default; | ||
| 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 - 'default' | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | sub name () { 'default' } | ||
| 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 | already_guessed => [ | |
| 42 | 'This letter has already been given', | ||
| 43 | 'Hey dude, can\'t you read, that letter has been tested', | ||
| 44 | 'Are you testing me?', | ||
| 45 | 'I can read, which may not be your case, this letter has already been given', | ||
| 46 | ], | ||
| 47 | good_guess => [ | ||
| 48 | 'Good guess', | ||
| 49 | 'Well done', | ||
| 50 | 'Clever', | ||
| 51 | 'mmmh, you are smart', | ||
| 52 | ], | ||
| 53 | bad_guess => [ | ||
| 54 | 'Bad guess', | ||
| 55 | 'Pathetic', | ||
| 56 | 'Worth the shot', | ||
| 57 | 'Well, did you really think it would work?', | ||
| 58 | ], | ||
| 59 | won => [ | ||
| 60 | 'You won!', | ||
| 61 | 'Very well done!', | ||
| 62 | 'Fantastic', | ||
| 63 | 'You got it!', | ||
| 64 | ], | ||
| 65 | lost => [ | ||
| 66 | 'You lose', | ||
| 67 | 'Looser', | ||
| 68 | 'Gotcha', | ||
| 69 | 'Computer is stronger than Human', | ||
| 70 | ], | ||
| 71 | play => [ | ||
| 72 | 'Common, play with me', | ||
| 73 | 'Hello, anybody to play with me?', | ||
| 74 | 'Let\'s guess the word', | ||
| 75 | 'Are you smart enough?', | ||
| 76 | ], | ||
| 77 | quiet => [ | ||
| 78 | 'Ok then', | ||
| 79 | 'I shall shut up', | ||
| 80 | 'I\'ll keep quiet', | ||
| 81 | 'At your orders, I will stay quiet', | ||
| 82 | ], | ||
| 83 | talk => [ | ||
| 84 | 'I can talk thanks!', | ||
| 85 | 'Thank you master, I can express myself now', | ||
| 86 | 'You may regret it if I speak too much now', | ||
| 87 | 'I can talk, I can talk!', | ||
| 88 | ], | ||
| 89 | last_game => [ | ||
| 90 | 'This was the last game, option play to start a new game', | ||
| 91 | ], | ||
| 92 | help => [ | ||
| 93 | "Hangman - guess a word\r\nOptions:\r\n\t<letter>? : guess a letter.\r\n\tguess <letter or word>: guess a letter or the entire word.\r\n\t<hangman> help - This help\r\n\t<hangman> play : Start a new game or display current game.\r\n\t<hangman> quiet : keep quite between guesses\r\n\t<hangman> talk : Talk between guesses", | ||
| 94 | ], | ||
| 95 | lack_imagination => [ | ||
| 96 | "This is not a exciting strategy", | ||
| 97 | "You are running out of vowel", | ||
| 98 | "How predictable", | ||
| 99 | ], | ||
| 100 | }; | ||
| 101 | } | ||
| 102 | |||
| 103 | 1 | 1; | |
| 104 | |||
| 105 | |||
| 106 | =head1 AUTHOR | ||
| 107 | |||
| 108 | Pierre Denis <pierre@itrelease.net> | ||
| 109 | |||
| 110 | http://www.itrelease.net/ | ||
| 111 | |||
| 112 | =head1 COPYRIGHT | ||
| 113 | |||
| 114 | Copyright 2005 IT Release Ltd - All Rights Reserved. | ||
| 115 | |||
| 116 | This module is released under the same license as Perl itself. | ||
| 117 | |||
| 118 | =cut | ||