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.
In reply to Re: talker bot using basicbot
by Corion
in thread talker bot using basicbot
by liamlrb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |