Chat clearer [Justin.tv only]

By reider45 on May 27, 2011

Here is a script that clears your justin.tv chat room.

on *:TEXT:!clear:#:{   
  if ($nick isop $chan ) {
    msg $chan /clear 
    msg $chan $nick Has Cleared the chatroom!
    else { .notice $nick you must be a mod to use this command }    halt
  }

Comments

Sign in to comment.
napa182   -  Jun 07, 2011

well wasting the $regml(1) in this case is fine for using $+(/,$regml(1)) is a lil drawn out then using /clear
but w/e it's nice to see each option shown.

 Respond  
Jethro   -  Jun 07, 2011

jaytae, you could say I was trying something unorthodox is all.

I could have used:

msg # $+(/,$regml(1))
msg # $nick has cleared the chatroom!

The reason being, as stated, I did not wish to waste the regex match to be referenced by way of $regml(1). I also wanted to use one msg instead of two.

 Respond  
jaytea   -  Jun 07, 2011

tokenize 94 $+($+(/,$regml(1)),^,$nick has cleared the chatroom!)
msg # $*

just wondering, why not:

  msg # /clear
  msg # $nick has cleared the chatroom!
 Respond  
Jethro   -  Jun 06, 2011
on $@*:text:/^!(clear)$/iS:#:{   
  if (!%f) { 
    inc -u5 %f 
    if ($nick(#,$nick,vr)) {
      .notice $nick you must be a mod to use this command 
      halt
    }
    tokenize 94 $+($+(/,$regml(1)),^,$nick has cleared the chatroom!) 
    msg # $*
  }
}

I don't feel like wasting $regml(1) :P

 Respond  
blackvenomm666   -  Jun 06, 2011

meh i didnt even notice the halt he had haha

 Respond  
napa182   -  Jun 06, 2011

i don't understand why the halt at the end?
also maybe add a lil flood pro to it

on $@*:text:/^!clear$/iS:#:{   
  if (!%f) { inc -u5 %f
    if ($nick(#,$nick,vr)) { .notice $nick you must be a mod to use this command }
    else {
      msg # /clear 
      msg # $nick Has Cleared the chatroom!
    }
  } 
}
 Respond  
blackvenomm666   -  Jun 05, 2011
on *:TEXT:*:#:{   
tokenize 32 $strip($1-)
  if ($nick isop $chan ) && ($1 == !clear) {
    msg $chan /clear 
    msg $chan $nick Has Cleared the chatroom!
    else { .notice $nick you must be a mod to use this command }    halt
  }
}
 Respond  
reider45   -  Jun 05, 2011

Ok then updated and fixed its over %25 percent mine i took a whole sectin out of it ;) . Btw chill guys its just a snippet

 Respond  
Jethro   -  Jun 02, 2011

Let's not get too meticulous to compare the semblance to yours and xbox_gamer1's. The overall concept and its context share 95% of the likeness. You should come up with something that sets yours apart from xbox_gamer1's. This is getting old trying to come up with an excuse for saying I "own" this and that...

 Respond  
Savage_CL   -  Jun 01, 2011

no I don't. and I also don't know why you have two on TEXT !clear events. That's just stupid.

 Respond  
reider45   -  Jun 01, 2011

His :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;Chat clear;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;; by xbox_gamer1;;;;;
on *:TEXT:!chatclear:#:{
msg $chan /clear
msg $chan $nick has cleared the chat room!
}


Chat Clear
MODS ONLY!!

on *:TEXT:!chatclear:#:{
if ($nick isop #) {
msg $chan /clear
msg $chan $nick Has Cleared the chatroom!
else { .notice $nick you not authorized to use this command } halt
}

Mine: on *:TEXT:!clear:#:{
msg $chan /clear
msg $chan Chat has been cleared by $nick
}

on *:TEXT:!clear:#:{
if ($nick isop $chan ) {
msg $chan /clear
msg $chan Chat has been cleared by $nick !
else { .notice $nick you must be a mod to use this command } halt
}

see the difference?

 Respond  
Jethro   -  Jun 01, 2011

Technically speaking this is a duplicate of xboxgamer's original, the only 2% you have tweaked are:

Chat has been cleared by $nick
$nick you must be a mod to use this commandcompared to the original:> $nick Has Cleared the chatroom!
$nick you not authorized to use this commandPerhaps ripping is too strong of a word for you; I'd say this is another copycat.

 Respond  
reider45   -  Jun 01, 2011

um noo napa im not ripping it is more than 50% mine :)

 Respond  
napa182   -  May 30, 2011

reider45 Wrote:

ok i just tweeked it and now its mine, :D
hmm so just cuz you so called " tweeked it" it gives you the right to rip it? hmm just odd =/
1/10

 Respond  
reider45   -  May 29, 2011

ok i just tweeked it and now its mine, :D

 Respond  
reider45   -  May 29, 2011

i don tmean to copy... usually when someone looks for scripts they have them as newest first so this was a newer post and more people could find it :0

 Respond  
Jethro   -  May 28, 2011

I'm certain he's more than capable of logging in to his admin account from anywhere in the world, where internet is available. lol

 Respond  
napa182   -  May 28, 2011

I think Scott is still in Japan so idk...

 Respond  
Jethro   -  May 28, 2011

Napa182, because, truthfully, everybody can...until Scott, the site admin, feels like removing it by way of seeing it or being reported by someone else. :P One of the submission rules states that at least 50% of the code must be written by you. Even so, many people still submit snippets that are either a duplicate or not written by him or her.

 Respond  
napa182   -  May 28, 2011

why are you reposting it if it has already been posted?
xbox_gamer1's snippet

 Respond  
Ahmed Zaggoudi   -  May 28, 2011

nice ;)

 Respond  
reider45   -  May 28, 2011

Well i didnt make it i was just re-posting it

 Respond  
Jethro   -  May 28, 2011

Your code has bracket misplaced and halt used unnecessarily. This is the edit:

on *:TEXT:!chatclear:#:{   
  if ($nick isop #) {
    tokenize 44 /clear, $+ $nick has cleared the chatroom!
    msg # $*
  }
  else { 
    .notice $nick you  not authorized to use this command 
  } 
}

You can tokenize it so you only need one msg command.

 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.