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;
}