Games::Bingo::Bot

Games::Bingo::Bot is a simple class holding IRC related methods for bingo.
Download

Games::Bingo::Bot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • jonasbn
  • Publisher web site:
  • http://search.cpan.org/~jonasbn/Games-Bingo-0.13/lib/Games/Bingo/Card.pm

Games::Bingo::Bot Tags


Games::Bingo::Bot Description

Games::Bingo::Bot is a simple class holding IRC related methods for bingo. Games::Bingo::Bot is a simple class holding IRC related methods for bingo.SYNOPSISuse Games::Bingo::Bot;use constant ANY => 1; use constant PUBLIC => 2; use constant PRIVATE => 3;my $gbb = Games::Bingo::Bot->new();my $sub = $gbb->{'commands'}->{$msg});my ($type, $answer) = &$sub($gbb, $nick);This module contains all the commands supported by the Games::Bingo::Bot IRC bot (see the script in the bin directory).The Games::Bingo::Bot class (this) and the script mentioned above is a complete IRC setup for playing Bingo, using the Games::Bingo module.These are the bingobot commands:help - this messageplay - join a gamestats - get the current statistics of the running gamepull - pull the next numberbingo - you indicate to the bot that you have bingopulled - shows you what number have been pulledshow - lists the numbers on your plateThe command are described below in detail (SEE COMMANDS).Not implemented yet (SEE TODO):auto - enables automode (automatic number pulling)noauto - disables automodeAll commands can be sent into the channel or send as private messages to the bot. The bot can repond as both of these ways aswell. The reponses are sent as follows:help, show and all errors are always private messagespull and bingo are always publicplay, pulled, stats, auto, noauto depends on how you queryAs long as the bot is online a game is running. Requirements: · Perl


Games::Bingo::Bot Related Software