!say with badwords

By CookieScripter on Dec 04, 2009

This is my first mIRC script, it basically makes the bot (or you) send whatever is put after !say. It has badwords filter to stop bot from being kicked if channel filters are on. To add more badwords or remove them type |word in (!$regex(fuck|dick,/i)) but not before ,/i. Thanks for any posotive comments!

on *:TEXT:!say *:#: { if (!$regex(fuck|dick,/i)) /msg $chan $nick says: $2- | else /msg $nick Your message " $2- "was ignored becuase of: Badwords }

Comments

Sign in to comment.
CookieScripter   -  Dec 06, 2009

thanks Jethro_, i noticed it didn't work.

 Respond  
Jethro   -  Dec 04, 2009

Your existing script will respond to everything even if a user doesn't say a bad word. My suggestion to you is this:

on *:TEXT:*:#: {
  if ($strip($1) == !say) {
    var %b = /((fu|di)ck|word1|word2|word3|word4|word5|word6|word7|word8|word9|word10|word11)/iS
    $iif(!$regex($2-,%b),msg # $nick says: $2-,msg $nick Your message contained $+(",$regml(1),") and was ignored.)
  }
}

As shown, you can add more bad words to be covered by replaceing word1, word2, etc...

P.S. I forgot to add that the idea of your script isn't foolproof, meaning upon entering the command !say BadwordHere, it'll not be censored or filtered, rather than sending a PM to the offender for a warning.

 Respond  
Shinybot   -  Dec 04, 2009

Yeah

 Respond  
CookieScripter   -  Dec 04, 2009

on :TEXT:!say :#:{ /msg $chan $nick says: $2- | else /msg $nick Your message was ignored

 Respond  
CookieScripter   -  Dec 04, 2009

that removes the badwords though

 Respond  
Shinybot   -  Dec 04, 2009

on :TEXT:!say :#: { /msg $chan $nick says: $2- | else /msg $nick Your message " $2- "was ignored becuase of: Badwords }

 Respond  
Shinybot   -  Dec 04, 2009

Oops flood sorry

 Respond  
CookieScripter   -  Dec 04, 2009

part of it from ur tut. rest i just learned on other sites

 Respond  
Shinybot   -  Dec 04, 2009

Great Script you Learned it from my Tutorial ?

 Respond  
Shinybot   -  Dec 04, 2009

Great Script :)

 Respond  
Shinybot   -  Dec 04, 2009

You are a Good Scritper You learn it from my Tutorial ?

 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.