I need the command CODE, to add the command !so (shoutout) Streamer. But only accessible for the Mods and Streamer.
!so command for Mods only
4 replies
Hey @Hardy Monkey!
While @Dusty Eagle's solution is correct, allow me to give you a properly formatted answer with a better use of the $(twitch) variable:
!addcom !so -ul=mod $(twitch $(touser) "Go check out {{displayName}} at {{url}} They played {{game}}.")
The relevant bit of "code" here is -ul=mod, that's the parameter telling Nightbot to make this command only available to moderators and above.
It's best practice to put -ul= or other parameter before the command's code, it makes things clearer.
I recommend reading the documentation for !commands and $(twitch).
You can also edit your current !so command to be only available to moderators and above:
!editcom !so -ul=mod