Skip Menu |

This queue is for tickets about the Bot-BasicBot-Pluggable CPAN distribution.

Report information
The Basics
Id: 11228
Status: resolved
Priority: 0/
Queue: Bot-BasicBot-Pluggable

People
Owner: MDOM [...] cpan.org
Requestors: allenday [...] ucla.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: missing tick() method
Please add a tick method, such as that below, that allows tick() calls to propagate from Bot::BasicBot. This allows for events to occur at regular intervals. This doesn't need to be done at all priority levels -- just once is fine. ======== use constant TICK => 900; #or whatever *Bot::BasicBot::Pluggable::tick = \&main::tick; sub tick { my $self = shift; for ($self->handlers) { my $response; my $who = $_; eval "\$response = \$self->handler(\$who)->tick(); "; #warn $@ if $@; } return TICK; }
Hello! Show quoted text
> Please add a tick method, such as that below, that allows tick() calls > to propagate from Bot::BasicBot. This allows for events to occur > at regular intervals. This doesn't need to be done at all priority > levels -- just once is fine.
Maybe i'm missing your point here or the tick command was added after you sent the this ticket. B::B::P does support tick() now, every module that implements a tick subroutine is called every five seconds. Does that solve your problem? Best wishes, Mario
Hello, sorry for closing your ticket, but as we are pretty sure your problem has been resolved and we haven't heard of you, i take the liberty to close this ticket. Please answer if you still believe that your problem hasn't been addresses. Best wishes, Mario