POE::Component::IRC::Plugin::AlarmClock

IRC alarm clock plugin
Download

POE::Component::IRC::Plugin::AlarmClock Ranking & Summary

Advertisement

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

POE::Component::IRC::Plugin::AlarmClock Tags


POE::Component::IRC::Plugin::AlarmClock Description

IRC alarm clock plugin POE::Component::IRC::Plugin::AlarmClock is a Perl module, a POE::Component::IRC plugin which uses POE::Component::IRC::Plugin for its base. It provides interface to to remind forgetful users of some evens as an alarm clock. It accepts input from public channel events, /notice messages as well as /msg (private messages); although that can be configured at will.SYNOPSIS use strict; use warnings; use POE qw(Component::IRC Component::IRC::Plugin::AlarmClock); my $irc = POE::Component::IRC- >spawn( nick = > 'AlarmClockBot', server = > 'irc.freenode.net', port = > 6667, ircname = > 'AlarmClock bot', plugin_debug = > 1, ); POE::Session- >create( package_states = > , ], ); $poe_kernel- >run; sub _start { $irc- >yield( register = > 'all' ); $irc- >plugin_add( 'AlarmClock' = > POE::Component::IRC::Plugin::AlarmClock- >new ); $irc- >yield( connect = > {} ); } sub irc_001 { $irc- >yield( join = > '#zofbot' ); } < Zoffix > AlarmClockBot, alarm set 50 < AlarmClockBot > Alarm will ring in 50 second(s) < Zoffix > AlarmClockBot, alarm set 10m < AlarmClockBot > Alarm will ring in 10 minute(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm list -AlarmClockBot- < Zoffix > AlarmClockBot, alarm del 2 -AlarmClockBot- Deleted alarm 2 [] which would have rang in 59 minute(s) and 55 second(s) < Zoffix > AlarmClockBot, alarm set 10s Check your stove! < AlarmClockBot > Alarm will ring in 10 second(s) < Zoffix > AlarmClockBot, alarm list -AlarmClockBot- < AlarmClockBot > Zoffix, alarm rang Check your stove! < AlarmClockBot > Zoffix, alarm rang < Zoffix > AlarmClockBot, alarm list -AlarmClockBot- < Zoffix > AlarmClockBot, alarm del 1 -AlarmClockBot- Deleted alarm 1 [] which would have rang in 9 minute(s) and 5 second(s) < Zoffix > AlarmClockBot, alarm del 10 -AlarmClockBot- You don't have any alarms set < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Alarm will ring in 1 hour(s) < Zoffix > AlarmClockBot, alarm set 1h < AlarmClockBot > Sorry but you may not set any more alarms. Clear your old ones or wait for them to ring < Zoffix > AlarmClockBot, alarm blah < AlarmClockBot > Invalid command in alarm plugin Requirements: · Perl


POE::Component::IRC::Plugin::AlarmClock Related Software