NIGHTBOT Commands with multiple outcomes

I want a command that choose especific user , but when you type only the command calls a random user in the chat. I have something like this

!kiss

$(user) has sent a kiss to $(touser), or $(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))

I dont really know how to make it an optional answer

Hiya, you would need something like this:

$(user) has sent a kiss to $(eval '$(touser)' == '$(user)' ? '$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))' : '$(touser)')
2 Likes

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