!hug custom command not working

Asked Jun 30, 2023·2 replies·Last activity 3 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I have seen another variation of the custom hug command.

But i can't seem to be able to write it myself

I want:
If the user typed !hug
nightbot will reply with (name of user) hugs (streamer)

and if user typed !hug (specific user)
nightbot will reply with (name of user) hugs (specific user)

2 replies

there r several ways to do it... just winging it, i'd do....

$(user) hugs $(eval if("$(touser)"=="$(user)"){"$(channel)"}else{"$(touser)"})

p.s. and if Night sees this, i feel like a "tochannel" command variable would be a nice addition to the bot ;)

Make sure you are on the correct stream. Not the correct stream? Message me.