Is there a way to configure which command is allowed on twitch or discord only?

Asked Apr 4, 2023·2 replies·Last activity 3 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.

At the moment it would seem like Nightbot reacts to the same command in twitch chat and in discord channels. Some simply do not make sense in discord for example.

So is there a way to tell the bot which command is valid on which chat?

2 replies

Hey @Fabled Whale!

Yes, you can use the $(provider) variable for it.

$(eval '$(provider)' === 'twitch' ? 'MESSAGE_FOR_TWITCH_CHAT' : ' ';)
Polar Cat said:
$(eval '$(provider)' === 'twitch' ? 'MESSAGE_FOR_TWITCH_CHAT' : ' ';)

Does the trick. Thanks a bunch, nya!