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.

Spam protection

Help for those learning Tcl or writing their own scripts.
Post Reply
c
chmod 007
Voice
Posts: 1
Joined: Fri May 31, 2013 6:39 am

Spam protection

Post by chmod 007 »

How would you make it so that a command can only be used once every 60 seconds channel wide
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

Post by dirty »

You would need to implement this in a main script for each command. You could do it by adding a channel str flag and setting the time of the last command used and check that time every time a new command is used. If 60 seconds have passed reset the time and respond to the command. But again, this would require a mass implementation on a main script. Grate idea by the way.. will add it in my script MCC later on.
come to the dark side.. I have cookies!
WwW.BotZone.TK
F
Fr3aK
Voice
Posts: 4
Joined: Thu Apr 11, 2013 12:09 pm

Post by Fr3aK »

I hope you will post the code here. Since I am searching for this too.
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

You can take a look at this. This question has been asked before for so many scripts.

http://forum.egghelp.org/viewtopic.php?p=95961#95961

It should be usefull to you
Post Reply