need help title change - mIRC
need help
need help making a !status command like nightbot how it changes the title
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.
on $*:text:/^!(topic|status|title|game)/iS:#:{
var %switch $iif($1 == !game,game,status)
if ($2 != $null) {
al # $capital($nick) 5
twitch.topic # %switch $2-
}
}
alias twitch.topic {
var %chan = $1, %switch = $2, %topic = $3-
var %sockname = twitch.topic. $+ $ticks
hfree -w %sockname | hmake %sockname
hadd %sockname params %chan %switch
hadd %sockname chan %chan
hadd %sockname oath.token $twitch(%chan).token
hadd %sockname request /kraken/channels/ $+ $mid(%chan,2-)
if (%topic != $null) {
hadd %sockname method PUT
hadd %sockname data channel[ $+ %switch $+ ]= $+ $urlencode(%topic)
hadd %sockname signal topic.set
}
else {
hadd %sockname method GET
hadd %sockname signal topic.get
}
sockopen -e %sockname api.twitch.tv 443
}