You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small handler to allow you to read files. Files may need to be referenced via relative paths instead of absolute paths. That is, use `example.txt`, `folder/example.txt`, or `../folder/example.txt` instead of `C:/Users/PC/Documents/folder/example.txt`.
1283
+
1284
+
As a best practice, wrap file paths in quotation marks. Example: `"folder/example.txt"`.
1285
+
1286
+
### File Triggers
1287
+
1288
+
#### OnFileUpdated
1289
+
|||
1290
+
------------ | -------------
1291
+
**Info** | Triggers when a file updates. `<file>` indicates the name of the file to check for updates.
**\<arg\>** | Returns a value for each `<arg>` value specified.
1566
+
1567
+
##### Example Usage
1568
+
1569
+
<table>
1570
+
<tr>
1571
+
<td>Parses the input to a command for a specified scene and source to hide.</td>
1572
+
</tr>
1573
+
<tr>
1574
+
<td>
1575
+
1576
+
```m
1577
+
# Example Usage: !hide Game GameSource
1578
+
OnCommand b 0 !hide
1579
+
Args {after} {scene} {source}
1580
+
OBS SceneSource {scene} {source} off
1581
+
```
1582
+
1583
+
</td>
1584
+
</tr>
1585
+
</table>
1586
+
1587
+
***
1588
+
1508
1589
#### AsyncFunction
1509
1590
`AsyncFunction` is an alternate to [`Function`](#function) that allows you to call javascript code using the `await` keyword. This is for advanced use cases that require API calls, promises, etc. For more information, please see this [documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction).
1510
1591
@@ -2031,6 +2112,21 @@ y | The y position of the source
2031
2112
2032
2113
***
2033
2114
2115
+
#### OBS GetSize
2116
+
|||
2117
+
------------ | -------------
2118
+
**Info** | Gets the size for a source in a given scene in OBS. `<scene>` is the scene the source is in. `<source>` is the source to get the size for.
2119
+
**Format** | `OBS GetSize <scene> <source>`
2120
+
**Example** | `OBS GetSize Webcam Camera`
2121
+
2122
+
##### Parameters
2123
+
|||
2124
+
------------ | -------------
2125
+
width | The width of the source
2126
+
height | The height of the source
2127
+
2128
+
***
2129
+
2034
2130
#### OBS GetSourceTypes
2035
2131
|||
2036
2132
------------ | -------------
@@ -2537,6 +2633,20 @@ None at the moment.
2537
2633
2538
2634
***
2539
2635
2636
+
#### Param Contains
2637
+
|||
2638
+
------------ | -------------
2639
+
**Info** | Checks if the specified text exists within a parameter. `<parameter>` is the name of the existing parameter. `<value>` is the value to look for in the parameter. `Param Contains` differs from `Param Keyword` as it is case sensitive and does not require whitespace around the searched text
2640
+
**Format** | `Param Contains <parameter> <value>`
2641
+
**Example** | `Param Contains after "app"`
2642
+
2643
+
##### Parameters
2644
+
|||
2645
+
------------ | -------------
2646
+
**contains** | [true/false] Whether or not the value was found in the parameter.
2647
+
2648
+
***
2649
+
2540
2650
#### Param Copy
2541
2651
|||
2542
2652
------------ | -------------
@@ -3358,65 +3468,6 @@ Enables the ability to run actions when channel point rewards are redeemed.
3358
3468
3359
3469
### Twitch Triggers
3360
3470
3361
-
#### OnCommunityGoalComplete
3362
-
|||
3363
-
------------ | -------------
3364
-
**Info** | Used to trigger a set of actions when a community goal is completed. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
**user** | The display name of the user that completed the goal.
3375
-
**amount** | The amount of points donated to complete the goal.
3376
-
**user_total** | The total amount of points contributed by the user.
3377
-
**progress** | The current amount of points contributed towards the goal.
3378
-
**total** | The amount of points required to complete the goal.
3379
-
**data** | The complete json community goal message (for use with [Function](#function)).
3380
-
3381
-
#### OnCommunityGoalProgress
3382
-
|||
3383
-
------------ | -------------
3384
-
**Info** | Used to trigger a set of actions when a user contributes towards a goal. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
**user** | The display name of the user that completed the goal.
3395
-
**amount** | The amount of points donated to complete the goal.
3396
-
**user_total** | The total amount of points contributed by the user.
3397
-
**progress** | The current amount of points contributed towards the goal.
3398
-
**total** | The amount of points required to complete the goal.
3399
-
**data** | The complete json community goal message (for use with [Function](#function)).
3400
-
3401
-
***
3402
-
3403
-
#### OnCommunityGoalStart
3404
-
|||
3405
-
------------ | -------------
3406
-
**Info** | Used to trigger a set of actions when the streamer starts a goal. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
**data** | The complete json community goal message (for use with [Function](#function)).
3417
-
3418
-
***
3419
-
3420
3471
#### OnTWAd
3421
3472
|||
3422
3473
------------ | -------------
@@ -3452,6 +3503,25 @@ Enables the ability to run actions when channel point rewards are redeemed.
3452
3503
3453
3504
***
3454
3505
3506
+
#### OnTWBits
3507
+
|||
3508
+
------------ | -------------
3509
+
**Info** | Triggers when bits are used in the channel. Triggers for cheers, power-ups, and combos.
3510
+
**Format** | `OnTWBits`
3511
+
**Example** | `OnTWBits`
3512
+
3513
+
##### Parameters
3514
+
|||
3515
+
------------ | -------------
3516
+
**id** | The user ID of the user using bits.
3517
+
**login** | The user login of the user using bits.
3518
+
**name** | The user display name of the user using bits.
3519
+
**data** | The complete Twitch EventSub event data (for use with [Function](#function)).
3520
+
**amount** | The amount of bits cheered by the user.
3521
+
**message** | The message included with the bits. This will be an empty string if no message is included.
3522
+
3523
+
***
3524
+
3455
3525
#### OnTWChannelPoint
3456
3526
|||
3457
3527
------------ | -------------
@@ -3667,6 +3737,65 @@ Enables the ability to run actions when channel point rewards are redeemed.
3667
3737
3668
3738
***
3669
3739
3740
+
#### OnTWCommunityGoalComplete
3741
+
|||
3742
+
------------ | -------------
3743
+
**Info** | Used to trigger a set of actions when a community goal is completed. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
**user** | The display name of the user that completed the goal.
3754
+
**amount** | The amount of points donated to complete the goal.
3755
+
**user_total** | The total amount of points contributed by the user.
3756
+
**progress** | The current amount of points contributed towards the goal.
3757
+
**total** | The amount of points required to complete the goal.
3758
+
**data** | The complete json community goal message (for use with [Function](#function)).
3759
+
3760
+
#### OnTWCommunityGoalProgress
3761
+
|||
3762
+
------------ | -------------
3763
+
**Info** | Used to trigger a set of actions when a user contributes towards a goal. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
**user** | The display name of the user that completed the goal.
3774
+
**amount** | The amount of points donated to complete the goal.
3775
+
**user_total** | The total amount of points contributed by the user.
3776
+
**progress** | The current amount of points contributed towards the goal.
3777
+
**total** | The amount of points required to complete the goal.
3778
+
**data** | The complete json community goal message (for use with [Function](#function)).
3779
+
3780
+
***
3781
+
3782
+
#### OnTWCommunityGoalStart
3783
+
|||
3784
+
------------ | -------------
3785
+
**Info** | Used to trigger a set of actions when the streamer starts a goal. Using `*` as the `<goal_title>` will execute the trigger for all channel point rewards.
0 commit comments