This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Timed ignore and delay for answers

Old posts that have not been replied to for several years.
Locked
T
Tattarainen

Timed ignore and delay for answers

Post by Tattarainen »

Im coding a talking bot, like infoegg, and I like to know how do I set timed ignore for users that repeat keywords? Like if someone says word "hello" 5 times, bot answers 5 times. Im looking for command that ignores nick that say "hello", about 5 seconds.
And another problem, bot answers too quickly. How i set delay for it answers about 5-30 seconds?
n
n1x

Post by n1x »

i think you should ask more concret questions... In this case your question sounds like "How to write a script?"
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Tattarainen,

You probably don't want to totally ignore the user, do you? If you do, look in tcl-commands.doc for ignore commands. They are there. But a better solution is to use a global array or something to keep track of when a word was last spoken. Check the current time vs. the saved time and if it's less than 5 seconds apart, return 0. If you need help with time functions, search the forum, there are lots of posts about it.
Locked