Using the !hug command

I looked around alot, and couldnt seem to figure out how to do what I wanted to with the !hug command.

Currently I have it set so where when you just use !hug, Nightbot will say: (user) hugs (randomuser) which is fine and great.

Is there a way to set it so if you wanted to say, hug a specific user, where you go !hug @(user),Nightbot will use that command instead? So basically they’re interchangeable. Is that possible to do?

@KatBug

Are you using this custom API to get a random user?

https://2g.be/twitch/randomviewer.php?channel=$(channel)

Yea i am using that one.

Delete your current !hug command, then copy and paste this into chat:

!addcom -cd=5 !hug $(user) hugs $(eval a=decodeURIComponent(`$(querystring)`);a==``?`$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))`:a)!
2 Likes

thanks so much, that works perfectly :smiley:

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