neckgarlic3 commented on a Page, Host command for Twitch  -  Nov 01, 2014

How can i make it streamer only command

Bacon_Space  -  Nov 02, 2014

Made By Bacon_Space

on :TEXT:!host:#: {
{ if (($nick == Ur Twitch Name )) {
if (!$2) msg $chan Must specify a streamer to Host
elseif ($2) && (!$3) msg $chan /host $2 $+
}
else msg $chan $nick This is A Broadcaster Command Sry !
}

Yawhatnever  -  Nov 03, 2014

A more generalized way would be changing if ($nick isop #) { to if ($+($chr(35), $nick) == #) {

$chr(35) is a '#' character, so essentially you're checking if #$nick == #channel. (If the nickname prefixed with # is the same as the channel name then it's the channel owner on twitch)

HDBSD  -  Nov 10, 2014

you forgot the unhost command

on :TEXT:!host:#: {
if ($nick isop #) {
if (!$2) msg $chan Must specify a streamer to Host
elseif ($2) && (!$3) msg $chan /host $2 $+
}
else msg $chan $nick This is a Mod Only Command Sry !
}

on :TEXT:!unhost: {
if ($nick isop #) {
msg $chan /unhost
elseif msg $chan $nick This is a Mod Only Command Sry !
}
}

Sign in to comment

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.