Retrieve random non-banned user

Asked Jul 12, 2020·2 replies·Last activity 6 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.

Hello!
Is there a way to retrieve a random user, then check if the account is banned on channel and if so, do something different?

I know there is $(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel)) to get a random user, but that does include bots that are in every channel, as well as nightbot itself. Is there a way to exclude them from a command?

2 replies

Hiya, checking for banned users is not possible using this command, to filter bots use:
$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel)&filterbots)
This will filter the known/popular bots.

Thanks! Though unless you've made a typo somehwere, this $filterbots still produces results with most popular bots included...