Skip to content

$(provider)

Syntax
$(provider)
Arguments
None

The $(provider) variable returns the platform the channel runs on, as a lowercase slug: twitch, youtube, or kick. It is identical to $(channel.provider) and works on every platform.

!command add !platform This channel streams on $(provider) — see you in chat!
Example chat
ViewerName:!platform
partner badgemoderator badgeStreamElements:This channel streams on twitch — see you in chat!
$(provider)

The variable takes no arguments and always refers to the channel the bot is running in.

Platform Output
Twitch twitch
YouTube youtube
Kick kick

Because the output is a stable lowercase slug, it is most useful nested inside other variables — for example to build platform-aware responses with $(customapi):

$(customapi https://example.com/messages/$(provider))

This requests a different URL per platform (.../messages/twitch on Twitch, .../messages/kick on Kick, and so on), so your API can return a platform-specific response.

  • $(channel): $(channel.provider) returns the same value, alongside other channel fields.
  • $(customapi): Fetch a URL — combine with $(provider) for platform-aware responses.
  • $(if): Conditional output based on a true/false condition.

Q: Does $(provider) work on every platform?

A: Yes — it is available on Twitch, YouTube, and Kick.

Q: Is the output capitalized?

A: No, it is always the lowercase slug (twitch, not Twitch).