!plug command help

I’m trying to make a plug command that plugs a user’s twitch. I have most of it down I just need the part that actually plugs them and not me, I tested it in my chat but it only works for me. This is what I have: !addcom !plug -ul=moderator You should check out $(user) over at twitch.tv/$(user) ! What needs to be fixed?

$(user) is a variable that is always replaced by the name of the user calling the command (see https://docs.nightbot.tv/commands/variables).

You could use the variables $(query), $(1), or $(touser) to get the functionality you desire.

!addcom !plug -ul=moderator You should check out $(query) over at twitch.tv/$(query) !
1 Like

Thanks For the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.