Single Person Blacklist

By Trav on Aug 17, 2007

Ok so what this does is lets say someone abuses your bot or whatever they're spamming it or they're spamming the channel, all you do is right click on their name and click "Ignore". Now it'll ask you for how long, you put in how many minutes, not seconds. It'll multiply it by 60 for you so they'll wait X minutes not X seconds.

Now it asks you for the reason, which is optional.

Ok so then it'll msg the chan saying "$nick has been Blacklisted for X minutes. Reason: XREASONX"

Now the way the way it says X minutes is it calcs it again, however I could've just made this command run before it calced by 60, either way works.

Now when the time is up it again messages the channel saying "Nick is now Unblacklisted".

Enjoy :D

menu nicklist {
  Ignore:set %ignoretime $?="Enter ignore time" | set %ignoretime $calc(%ignoretime *60) | set %ignorereason $$?="Enter ignore reason" | ignore $1 | msg $chan  4 $1 1has been 11Blacklisted1 for 4 $calc(%ignoretime / 60) 1minutes. The Reason is:11 %ignorereason | timer 1 %ignoretime ignore -r $1 | timer 1 %ignoretime msg $chan $1 has been 4Unblacklisted. | unset %ignoretime
} 

Comments

Sign in to comment.
Joshuaxiong1   -  Oct 08, 2007

What kind of blacklist is this? Scrored below

 Respond  
Anti   -  Aug 17, 2007

where are you only realbot is on...

 Respond  
Trav   -  Aug 17, 2007

I only hang out at swiftirc.fl.us.swiftirc.net do a /whois for [Trav] and Realbot is my bot :D

 Respond  
Anti   -  Aug 17, 2007

D: where can i find you at trav.. me and napa are at irc.dejatoons.net #Script0rz :P

 Respond  
Trav   -  Aug 17, 2007

Well I\'m in a situation where I\'m in a channel I wanna be in but im not hop/op

 Respond  
napa182   -  Aug 17, 2007

Oh and nice script

 Respond  
napa182   -  Aug 17, 2007

true but if they were abusing my bot i would just kick ban them..

 Respond  
Trav   -  Aug 17, 2007

Ty if you mean ignoring them, actually in your mind, this works if they\'re like abusing your bot or if they\'re spamming a channel in which there\'s no ops/hops

 Respond  
Anti   -  Aug 17, 2007

a single person black list? roflmao.. i\'d just ignore them .. hehe well done btw..

 Respond  
Trav   -  Aug 17, 2007

K thanks I\'ll fix that, I didn\'t realize that, but what I meant was that you didn\'t have to put anything for it to work but you did for the time.

 Respond  
Olliegod   -  Aug 17, 2007

Your description says the ignore reason is optional, but you code will not run without one because you use $$?, if you want to make it optional use $?

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