mIRC Homepage
Posted By: ItsWZRDx [Twitch] /me purge Code (Color in Chat) - 02/07/16 06:23 AM
I ended up losing the Code for when someone does /me in the chat, it purges them. If anyone has that code, would love to have it again. Thanks!
Code:
on *:action:*:#:{
  if ($nick !isop $chan) {
    msg # .timeout $nick 1
  }
}
Posted By: ItsWZRDx Re: [Twitch] /me purge Code (Color in Chat) - 04/07/16 05:55 AM
I did that, and it didn't work in the chat, let me know if I am doing anything wrong:


on *:LOGON:*:{
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/tags
raw CAP REQ :twitch.tv/commands
/debug @raw
}

on 1:TEXT:*subscribed*:#nickmercs:{
if ( $nick == twitchnotify ) && ($istok($1-,subscribed to,32)) halt
elseif ($nick == twitchnotify) && ( $4 == $null ) { describe $chan nickmercsSH Welcome to the #MercsFam $1 nickmercsLOVE nickmercsLY ! $+ }
}


raw USERNOTICE:*:{
if (($msgtags(msg-id).key == resub) && ($1 == #nickmercs)) {
var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
if ($0 == 1) {
describe $1 nickmercsSH %nick resubbed for $msgtags(msg-param-months).key months in a row! nickmercsLOVE nickmercsLY !
}
else {
describe $1 nickmercsSH %nick resubbed for $msgtags(msg-param-months).key months in a row with the message: $qt($2-) nickmercsLOVE nickmercsLY !
}
}

on *:action:*:#:{
if ($nick !isop $chan) {
msg # .timeout $nick 1
}
}
Posted By: Khonor Re: [Twitch] /me purge Code (Color in Chat) - 04/07/16 02:07 PM
Hey @ItsWZRDx,


You must be placed in a new remote!


Go to: Script Editor > Remote > New.


And the command should work correctly.

Quote:
on *:action:*:#:{
if ($nick !isop $chan) {
msg # .timeout $nick 1
}
}





_______________________________

Don't forget to follow me on Twitch.
© mIRC Discussion Forums