Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Bot::BasicBot 0.7

    Download button

    No screenshots available
    Downloads: 845  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    4 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tom Insam | More programs
    Perl Artistic License / FREE
    November 1st, 2007, 02:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Bot::BasicBot description

    Bot::BasicBot is a Perl module that contains a simple IRC bot baseclass.

    SYNOPSIS

    # with all defaults
    my $bot = Bot::BasicBot->new( channels => ["#bottest"] );
    $bot->run();

    # with all known options
    my $bot = Bot::BasicBot->new(

    server => "irc.example.com",
    port => "6667",
    channels => ["#bottest"],

    nick => "basicbot",
    alt_nicks => ["bbot", "simplebot"],
    username => "bot",
    name => "Yet Another Bot",

    ignore_list => [qw(dipsy dadadodo laotse)],

    charset => "utf-8", # charset the bot assumes the channel is using

    );
    $bot->run();

    Basic bot system designed to make it easy to do simple bots, optionally forking longer processes (like searches) concurrently in the background.
    There are several examples of bots using Bot::BasicBot in the examples/ folder in the Bot::BasicBot tarball. If you installed Bot::BasicBot through CPAN, see http://jerakeen.org/programming/Bot-BasicBot for more docs and examples.

    A quick summary, though - You want to define your own package that subclasses Bot::BasicBot, override various methods (documented below), then call new() and run() on it.

    STARTING THE BOT

    new( key => value, .. )

    Creates a new instance of the class. Name value pairs may be passed which will have the same effect as calling the method of that name with the value supplied. Returns a Bot::BasicBot object, that you can call 'run' on later.

    eg:
    my $bot = Bot::BasicBot->new( nick => 'superbot', channels => [ '#superheroes' ] );
    run()

    Runs the bot. Hands the control over to the POE core.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    IRC bot | bot baseclass | Perl module | IRC | bot | baseclass

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM