| View previous topic :: View next topic |
| Author |
Message |
chmod 007 Voice
Joined: 31 May 2013 Posts: 1
|
Posted: Mon Jun 10, 2013 10:32 am Post subject: Spam protection |
|
|
| How would you make it so that a command can only be used once every 60 seconds channel wide |
|
| Back to top |
|
 |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Mon Jun 10, 2013 12:05 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Fr3aK Voice
Joined: 11 Apr 2013 Posts: 4
|
Posted: Fri Aug 02, 2013 11:11 am Post subject: |
|
|
| I hope you will post the code here. Since I am searching for this too. |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
|
| Back to top |
|
 |
|