POE::Component::IRC Plugin::CSS::SelectorTools

Couple of CSS selector tools for IRC bots
Download

POE::Component::IRC Plugin::CSS::SelectorTools Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Zoffix Znet
  • Publisher web site:
  • http://search.cpan.org/~zoffix/

POE::Component::IRC Plugin::CSS::SelectorTools Tags


POE::Component::IRC Plugin::CSS::SelectorTools Description

Couple of CSS selector tools for IRC bots POE::Component::IRC::Plugin::CSS::SelectorTools is a Perl module, a POE::Component::IRC plugin which uses POE::Component::IRC::Plugin for its base. It provides basic CSS selector making tools. So far there are only two tools, the "link rule maker" and "multi-selector maker". If you have any suggestions for other tools feel free to let me know.It accepts input from public channel events, /notice messages as well as /msg (private messages); although that can be configured at will.The "commands" and their functionality is described under triggers sub section of CONSTRUCTOR section.SYNOPSIS use strict; use warnings; use POE qw(Component::IRC Component::IRC::Plugin::CSS::SelectorTools); my $irc = POE::Component::IRC->spawn( nick => 'CSSToolsBot', server => '127.0.0.1', port => 6667, ircname => 'CSSToolsBot', plugin_debug => 1, ); POE::Session->create( package_states => , ], ); $poe_kernel->run; sub _start { $irc->yield( register => 'all' ); $irc->plugin_add( 'CSSSelectorTools' => POE::Component::IRC::Plugin::CSS::SelectorTools->new ); $irc->yield( connect => {} ); } sub irc_001 { $irc->yield( join => '#zofbot' ); } < Zoffix > CSSToolsBot, sel link #foo div #beer .bas a < CSSToolsBot > #foo div #beer .bas a:link, #foo div #beer .bas a:visited, #foo div #beer .bas a:hover, #foo div #beer .bas a:active < Zoffix > CSSToolsBot, sel multi bar, beer, bez, p, div, a < CSSToolsBot > #foo bar, #foo beer, #foo bez, #foo p, #foo div, #foo a Requirements: · Perl


POE::Component::IRC Plugin::CSS::SelectorTools Related Software