Help w/ Flood Protection for JTV bot [DONE]
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Scripting
 
Oathicity  -  Sat Jul 28, 2012 8:05 am Reply with quote
I've been browsing through the code snippets section for the past hour trying to figure out how to do this, however, I haven't come up with anything through my search. Just a heads up before someone says "LOOK IT UP YOURSELF!". Wink

Basically I have a few commands on my bot but I have literally no flood protection for it.
Say for example, someone wants to keep spamming my !ip command or my !music command.
My bot will keep trying to output it as quick as the person is using the command.
I'm trying to set a delay so my bot doesn't get me banned from the servers.

How would I add a delay to a text event?
Example:

Code

 

Any help given would be greatly appreciated.
Thanks! Smile


Last edited by Oathicity on Sun Jul 29, 2012 2:37 am; edited 1 time in total
Jethro  -  Sat Jul 28, 2012 11:44 am Reply with quote
This basic trigger control will ignore any request until after 4 seconds:

Code

 
This should minimize the abuse of command scrolling.
Oathicity  -  Sun Jul 29, 2012 2:36 am Reply with quote

Jethro wrote

This basic trigger control will ignore any request until after 4 seconds:

Code

 
This should minimize the abuse of command scrolling.


It works just as I expected it to! Very Happy
I see you helping people all throughout these forums & in the snippet section.
Even if people may not say it often (maybe they do) you're freaking' awesome!

Thanks a ton!
Oath
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.