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?
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.