In the init method of your plugin module, create a POE session with object states, so that its event handlers will have access to the plugin module (as $self). Then store the session id in the object so that your pluggable handlers can easily send events to the session like this:
$poe_kernel->post($self->{session_id}, 'add_timer', 'something');In reply to Re: schedule alarms with POE and Bot::BasicBot::Pluggable ?
by Hinrik
in thread schedule alarms with POE and Bot::BasicBot::Pluggable ?
by brengo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |