Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion streamerbot/1.get-started/1.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Once you have connected to the website, you can change your update release chann
**Beta** updates are available to **everyone**, by joining the Discord and linking with Streamer.bot
::
::callout{icon=i-simple-icons-patreon}
**Alpha** updates are only available to **Silver Tier** subscribers on [Patreon](https://patreon.com/nate1280){target=_blank}
**Alpha** updates are only available to **Bronze Tier** subscribers on [Patreon](https://patreon.com/nate1280){target=_blank}
::


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 95 additions & 24 deletions streamerbot/1.get-started/5.examples/quotes-commands.md

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions streamerbot/1.get-started/_faq/11.if-else-subaction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
---
description: How do If/Else sub-actions work?
---
Since version 1.0.0 of Streamer.bot the if/else sub-action has changed to be more flexible and also allow you to run singular sub-actions in a True or False Result Group.

Here is a flowchart overview:
### Input Field
Pre-1.0.0 this field was called "Variable" as you'd directly write the variable name itself in it, like `userName`.
Now it's a general input field, so to check the value of `userName` we would write `%userName%` as using %% will give us the value of the action variable.
You can now also use Inline Functions and ~globalVar~ to check the value of a global persisted variable directly.

![If-Else flowchart](../assets/if-else-flowchart.png)
### Operation
This is the same as in pre-1.0.0, so basically the operation of how you want to check the value of the `Input` field, and the value of the `Value` field.

### Auto Type, Operation & Value Field
More infos found [here](https://docs.streamer.bot/api/sub-actions/core/logic/if-else#parameters)
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ variables:
type: number
description: The total number of subscriptions gifted by the user.
value: 42
- name: gift.cumulativeMonths#
type: number
description: Cumulative months the user has been subscribed for.<br># is a number starting at 0 til totalGifts - 1
value: 1
- name: gift.recipientUser#
type: string
description: Display name of the gifted user<br># is a number starting at 0 til totalGifts - 1
Expand All @@ -54,7 +50,7 @@ variables:
version: 0.2.5
description: The system message that was put into Twitch Chat.
value: Here's another gifted sub for your channel!
- name: totalSubsGiftedShared
- name: totalGiftsShared
type: boolean
version: 0.2.5
description: A boolean value if the user gifting the sub(s) shares there total gift count.
Expand All @@ -67,4 +63,4 @@ variables:
commonVariables:
- TwitchBroadcaster
- TwitchUser
---
---
Loading