[Twitch]
I want to be able to use !trust NICKNAME and then it set the nick name to be trusted and save it as a variable. I want it too be moderator+ only. How would I do that? Also how would I make other commands only work for users who are trusted?
Here's what I have so far
on *:text:!trust &:#:{
if ($nick isop #) {
set %trusted. $+ $2 On
msg $chan $2 is now trusted!
}
else { msg # Sorry you cannot use this command $nick }
}
on *:text:!test:#:{
if (%trusted.,$nick == On) {
msg # $nick is trusted!
}
else { msg # Sorry you cannot use this command $nick }
}
When I add myself to trusted It saves as a variable but I can't get it to say $nick is trusted when I type !test. it only says Sorry you cannot use this command $nick