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
}
}
@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 #
}
}
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.