NightDev Community Forums

Restrict commands per platform

Is there a better way to differentiate between platforms? $(chatid) returns aws for Twitch, so it’s easy to split between Twitch and others.

$(eval '$(chatid)' === 'aws' ? 'do the command' : '')

I’m wondering if there’s a better way to restrict specific commands per platform, instead of having to manually put all the evals on each command.

Hey @tomasito!

Yes, there is, use $(provider), even though it won’t change much to your commands, it’s a better practice, otherwise there are no other way.

2 Likes