clear chat

By dezzertv on Jul 05, 2011

Screenshots

Note: this only works if the bot is a moderator.

on *:TEXT:c:#: {
  if ($me isop # && $nick isop #) {
    .timererase 1 1 msg # / $+ clear
    .timererase 1 2 msg # $nick $+ , has Erased the chatroom.
  }
  else {
 { msg # $nick you currently don't hold the permission to Erase the chat. } halt
  }
}

Comments

Sign in to comment.
Fuzionx   -  Jan 10, 2012

@Abcdefmonkey: It seems that /clear actually clears the chatspace for everyone on certain servers..

The brackters are still missplaced and / $+ clear can just be done as /clear.
Try this:

on *:TEXT:c:#: {
  if ($me isop # && $nick isop #) {
    .timererase 1 1 msg # /clear
    .timererase 1 2 msg # $nick $+ , has Erased the chatroom.
  }
  else {
    .notice $nick Either me or you have no permission to clear the chatspace in #
  }
}
 Respond  
Abcdefmonkey   -  Jan 10, 2012

I honestly see no purpose of this snippet. /clear will only clear the chat space on the mIRC that the command is triggered on. Therefore, using this on a "bot" is utterly useless.

 Respond  
dezzertv   -  Jan 10, 2012

Updated the snippet.

 Respond  
KilllerX   -  Jul 11, 2011

It is a quick way of clearing the chat only using the letter c while any person using this in the room is op'ed.

 Respond  
xplo   -  Jul 10, 2011

why would you want to rely on some other people to type /clear
sreiousely..?

 Respond  
KilllerX   -  Jul 10, 2011

Not sure what you mean... It works for me.

 Respond  
PostIt^^   -  Jul 09, 2011
ON *:text:c:#: {
  if ( $nick isop # ) {
    if ( $me isop # ) {
      msg # .clear
      .timer 1 1 msg # $nick has cleared the chat.
    }
    else { describe # $nick :/ I can't clear the chat without mod. }
  }
  else { describe # Permission denied. }
}

I use this code.
@ not work on justintv
describe need #

 Respond  
blackvenomm666   -  Jul 07, 2011

evidently luc you cannot use the same command within a certain ammount of time on that site. as i said its retarded and messed up

 Respond  
KilllerX   -  Jul 07, 2011

This will trigger if someone types c in a chatroom that you aren't a mod in...
Try something like

ON @*:text:c:#: {
 if ($nick isop #) { 
 .timerclear 1 1 msg # .clear 
 .timerclear 1 5 msg # $nick has cleared the chat.
}
else { describe Permission denied }
}

This will make it so that. you have to be op'ed (modded). and rather then using multiple messages quickly in a row it waits a few seconds to say "$nick cleared the chat"

.clear in JTV is the same as doing a /clear in jtv.

 Respond  
napa182   -  Jul 06, 2011

LMAO @ irchainscriptz

 Respond  
irchainscriptz   -  Jul 06, 2011

0.o Sure we can napa182 -10/10 LOL

 Respond  
LucSatise   -  Jul 06, 2011

if that were true it'd be abused massivley

 Respond  
Fuzionx   -  Jul 06, 2011

So on that server everyone can clear the chatspace for everyone?

 Respond  
blackvenomm666   -  Jul 05, 2011

to the negativ comments justinchat is completley messed up with its commands and such. for all we know this may actually clear it for everyone not just the one user. but yea this is basically ripped/unuseful.

 Respond  
Fuzionx   -  Jul 05, 2011

Messaging /clear to a channel doesn't clear the chatspace. Only the command /clear does that, and only for you not for someone else.

Beside that, this script won't work anyway since the brackets are missplaced. Please test your script before posting them.

 Respond  
x1L22   -  Jul 05, 2011

o.O What is the logic in this one

 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.