Problem with $(user) on $(eval js)

Guys, I need to verify if $(user) is equals to a api response:

var randomUser;
randomUser = “$(urlfetch$(channel))”;
}while(randomUser == “$(user)”);

I’m trying to get a random user, but that user can’t be the same user who ran the command, so I created the loop to repeat until I get a different user, but the condition of the loop always returns false, even when the values ​​are the same. Can you help me with this?

Hiya, I added a filter option for this, to make this a bit easier:

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