pierrot has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'd like to write a plugin for an IRC bot (which is based on POE::Component::IRC) using POE::Component::IRC::Plugin. I want it to do the following (this is a simplified version of what I actually would like it to do):
When the nick 'foo' sends to a channel
<foo> !greet 20
the bot must reply
<bot> Hi foo!
after 20 seconds. How could I do that? I don't know how to trigger an event after a specified amount of time.
Thanks in advance for any suggestions.
Pablo.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Write a plugin for an IRC bot
by neilwatson (Priest) on Mar 17, 2016 at 20:50 UTC | |
by pierrot (Novice) on Mar 18, 2016 at 01:01 UTC | |
Re: Write a plugin for an IRC bot
by Anonymous Monk on Mar 17, 2016 at 17:39 UTC | |
by pierrot (Novice) on Mar 18, 2016 at 00:58 UTC | |
Re: Write a plugin for an IRC bot
by MidLifeXis (Monsignor) on Mar 17, 2016 at 17:45 UTC |