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?


Are you using this custom API to get a random user?$(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$(channel))`:a)!

thanks so much, that works perfectly :smiley:

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