Giter VIP home page Giter VIP logo

poe-component-irc-onjoin's Introduction

NAME
    POE::Component::IRC::Onjoin - provides IRC moved message & onjoin
    services

SYNOPSIS
     use POE::Component::IRC::Onjoin;

     my $onjoin  = POE::Component::IRC::Onjoin->new
     (
       -nick     => 'OnJoinBot',
       -channel  => '#onjoinbot',
       -servers  => [qw(token.rhizomatic.net binky.rhizomatic.net)],
       -message  => q(Hello! Just as an fyi, we moved to #blah),
     );

     $onjoin->engage();

DESCRIPTION
    This module implements a class that provides moved message and onjoin
    services as an IRC bot. Based on the configuration parameters passed to
    it via its constructor it will connect to a channel on a server and
    immediately send everyone on that channel a message privately. It will
    also send the same message to the channel itself publically at the
    specified interval. All users joining the channel thereafter will also
    recieve the message.

    An useful example of this would be when a channel moves either to a new
    channel or network, you would be able to effectively inform anyone
    connecting to the old channel about the new one.

    Class methods:

      new (constructor)

      Takes the following arguments:

      PARAMETER  TYPE      DEFAULT  DESCRIPTION

      -switches  optional  n/a      Currently only '-debug', which will spew
                                    massive debugging data. 
      -nick      mandatory n/a      The nick you want the bot to be.
      -username  optional  n/a      The ident, ie username the bot will have.
      -ircname   optional  seedesc  The name visible from a /whois. This will
                                    default to 'POE::Component::IRC::Session'.
      -exitmsg   optional  'bye!'   Message shown when the bot is disconnected.
      -channel   mandatory n/a      The channel you want the bot to connect to.
      -servers   mandatory n/a      The servers you want the bot to connect to.
                                    It will choose one in a random fashion.
      -port      optional  6667     The port on the server you want the bot to
                                    connect to.
      -interval  optional  30       How often in minutes you want the bot to
                                    send the message publically to the channel.
      -message   mandatory n/a      The message you want to be sent to the
                                    channel and users.
      -delay     optional  5        Number of seconds to wait between messaging
                                    users. If this is set too low you will
                                    probably be knocked off per "Excess Flood".

    Oject methods:

      engage -- Takes no arguments. Initiates the connection. 

AUTHOR
    Adam J. Foxson <[email protected]>

CREDITS
    Thanks to fimmtiu@#perl for assistance with tracking down some
    particularly nasty early poe bugs, and to uri@#perl for an excellent
    code review.

SEE ALSO
     POE::Component::IRC::Onjoin::EventProcessor(3)
     perl(1).

poe-component-irc-onjoin's People

Contributors

fhoxh avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.