Restrict commands per platform

Asked Jun 8, 2021·1 reply·Last activity 5 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.

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.

1 reply

Hey @Urban Goose!

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.