I was curious to know what exactly twitch is, so just got passwd and connected to twitch.
Now i know, twitch doesnt support /notice, /whois, /nick /mode and many others. What a bad.
Twitchclient 2 send info about SPECIALUSER to query msg.
Twitchclient 3 send info about SPECIALUSER to #channel.
I wrote some code to color subscriber nick (pink/13), turbo nick (green/9) and admin nick (red/4) in nick list, make it easy to notice who is SPECIALUSER and who is not.
Also color text message sent by SPECIALUSER with black, and others with grey.
Here is the code:
on ^*:OPEN:?:*:{
if $nick == jtv {
.raw twitchclient 3
haltdef
}
}
on ^$*:TEXT:/^(EMOTESET|USERCOLOR)/Sig:#:haltdef
on ^*:TEXT:SPECIALUSER *:#:{ set -e %user. [ $+ [ # ] ] $2-3 | haltdef }
on ^*:TEXT:*:#:{
var %text $1-
cline 1 # $1
tokenize 32 %user. [ $+ [ # ] ]
if $nick != $1 { echo 14 -t # $+(<,$nick,>) %text | haltdef }
else {
var %c $replace($2,subscriber,13,admin,4,turbo,9)
cline %c # $1
}
}