Simple Word Blacklist

By Exuviax on Jun 27, 2014

Anyone know how I made add an .ini file that would log the Blacklisted words per channel, then when you do something like

Edit - Used the wrong variable

!Blacklist list

It would reply with

"Your blacklist words are Corn, On, The, Can"

Also, the commands for this are just

!blacklist add WORD
!Blacklist del WORD

on *:TEXT:!blacklist add*:#: {
  if ($nick isop #) {
    set %blacklist. $+ $3 $+ . $+ $chan On
    msg # $3 Has been added to my blacklist, anyone using $3 will be timed out for 10 minutes.
  }
  else {
    msg # Sorry $nick $+ , you do not have permission to add words to the blacklist
  }
}
on *:TEXT:!blacklist del*:#: {
  if ($nick isop #) {
    unset %blacklist. $+ $3 $+ . $+ $chan On
    msg # $3 Has been removed from the blacklist
  }
  else {
    msg # Sorry $nick $+ , you do not have permission to remove words from my blacklist
  }
}
on *:TEXT:*:#: {
  if ($nick isop #) return
  var %i = 1
  while (%i <= $0) {
    if ($($+(%,blacklist.,$gettok($1-,%i,32),.,#),2)) {
      msg # $nick --> Do not use Blacklisted Words. (Timeout)
      msg # .timeout $nick 600
      break
    }
    inc %i
  }
}

Comments

Sign in to comment.
Hoshiru   -  Aug 31, 2014

Hey there.
Is there a chance to add more than 1 word or like phrase to the blacklist?

 Respond  
gamewar   -  Jul 04, 2014

I get the following error: * Invalid format: $evalnext (line 23, script10.ini)

I would appreciate if could help me.

 Respond  
TheWhistler   -  Jun 29, 2014

THIS FILE WILL NOT WORK
!Blacklist list does not work
[» Sun Jun 29 | 05:17:52 pm «] <~UtahBlaine> mothersticker Has been added to my blacklist, anyone using mothersticker will be timed out for 10 minutes.
[» Sun Jun 29 | 05:18:06 pm «] <+GE-Guest43842> mothersticker

Exuviax  -  Jun 29, 2014

Sorry about that, I updated it, should work now.

TheWhistler  -  Jun 30, 2014

now its not even adding words the cmds isnt working, i had to replace ($nick == exuviax) to ($nick isop #) for it to work
now its working very good even kicking and banning

on :TEXT:!blacklist add:#: {
if ($nick isop #) {
set %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been added to my blacklist, anyone using $3 will be timed out for 10 minutes.
}
else {
msg # Sorry $nick $+ , you do not have permission to add words to the blacklist
}
}
on :TEXT:!blacklist del:#: {
if ($nick isop #) {
unset %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been removed from the blacklist
}
else {
msg # Sorry $nick $+ , you do not have permission to remove words from my blacklist
}
}
on :TEXT::#: {
if ($nick isop #) return
var %i = 1
while (%i <= $0) {
if ($($+(%,blacklist.,$gettok($1-,%i,32),.,#),2)) {
msg # $nick --> Do not use Blacklisted Words. (Timeout)
msg # .timeout $nick 600
break
}
inc %i
}
}

Exuviax  -  Jun 30, 2014

Added this in another update, copied just my script in, and I had it set so only I could blacklist as I didn't want my mods to have access to this command.

TheWhistler  -  Jun 30, 2014

its not doning the kick/ban
here is the way i did it

on :TEXT:!blacklist add:#: {
if ($nick isop #) {
set %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been added to my blacklist, anyone using $3 will be timed out for 10 minutes.
}
else {
msg # Sorry $nick $+ , you do not have permission to add words to the blacklist
}
}
on :TEXT:!blacklist del:#: {
if ($nick isop #) {
unset %blacklist. $+ $3 $+ . $+ $chan On
msg # $3 Has been removed from the blacklist
}
else {
msg # Sorry $nick $+ , you do not have permission to remove words from my blacklist
}
}
on :TEXT::#: {
if ($nick isop #) return
var %i = 1
while (%i <= $0) {
if ($($+(%,blacklist.,$gettok($1-,%i,32),.,#),2)) {
msg # $nick --> Do not use Blacklisted Words. (Timeout)
msg # $nick you nasty talking booger, you need a timeout
timer 1 10 /msg chanserv ban # $nick Do not use Blacklisted Words.
break
}
inc %i
}
}

with that it works good

Exuviax  -  Jun 30, 2014

This script, the one I coded is set to work with Twitch, not default IRC

xxepic12xx  -  Oct 01, 2014

i cant get this to do anything with my bot im not sure where its messing up but its not responding at all

Sign in to comment

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.