in reply to schedule alarms with POE and Bot::BasicBot::Pluggable ?
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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: schedule alarms with POE and Bot::BasicBot::Pluggable ?
by brengo (Acolyte) on Jul 20, 2011 at 22:27 UTC |