in reply to talker bot using basicbot

Bot::BasicBot is written in POE, so there is no way other than events to do something. You cannot do anything in procedural code if you want events to be processed in parallel.

My approach would be to use a POE::Wheel::Tail maybe to supply a stream of messages, and have some kind of timer fetch a line from that wheel. Maybe you can also just read the next line from the file within a timer callback.

Replies are listed 'Best First'.
Re^2: talker bot using basicbot
by liamlrb (Acolyte) on Apr 21, 2010 at 18:21 UTC
    Thanks for the reply... so it looks like I have use the 'tick' method to read in the message one message at a time and send them out one at a time...