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
Copy file name to clipboardExpand all lines: cmd/events.go
+3
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ var (
28
28
costint64
29
29
countint
30
30
descriptionstring
31
+
gameIDstring
31
32
)
32
33
33
34
vareventCmd=&cobra.Command{
@@ -90,6 +91,7 @@ func init() {
90
91
triggerCmd.Flags().StringVarP(&itemName, "item-name", "n", "", "Manually set the name of the event payload item (for example the reward ID in redemption events). For stream events, this is the game title.")
91
92
triggerCmd.Flags().Int64VarP(&cost, "cost", "C", 0, "Amount of bits or channel points redeemed/used in the event.")
92
93
triggerCmd.Flags().StringVarP(&description, "description", "d", "", "Title the stream should be updated with.")
94
+
triggerCmd.Flags().StringVarP(&gameID, "game-id", "G", "", "Sets the game/category ID for applicable events.")
93
95
94
96
// retrigger flags
95
97
retriggerCmd.Flags().StringVarP(&forwardAddress, "forward-address", "F", "", "Forward address for mock event.")
|`--forward-address`|`-F`| Web server address for where to send mock events. |`-F https://localhost:8080`| N |
63
-
|`--transport`|`-T`| The method used to send events. Default is `eventsub`, but can send using `websub`. |`-T websub`| N |
64
-
|`--to-user`|`-t`| Denotes the receiver's TUID of the event, usually the broadcaster. |`-t 44635596`| N |
65
-
|`--from-user`|`-f`| Denotes the sender's TUID of the event, for example the user that follows another user or the subscriber to a broadcaster. |`-f 44635596`| N |
66
-
|`--gift-user`|`-g`| Used only for subcription-based events, denotes the gifting user ID |`-g 44635596`| N |
67
-
|`--secret`|`-s`| Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC. |`-s testsecret`| N |
68
-
|`--count`|`-c`| Count of events to fire. This can be used to simulate an influx of events. |`-c 100`| N |
69
-
|`--anonymous`|`-a`| If the event is anonymous. Only applies to `gift` and `cheer` events. |`-a`| N |
70
-
|`--status`|`-S`| Status of the event object, currently applies to channel points redemptions. |`-S fulfilled`| N |
71
-
|`--item-id`|`-i`| Manually set the ID of the event payload item (for example the reward ID in redemption events or game in stream events). |`-i 032e4a6c-4aef-11eb-a9f5-1f703d1f0b92`| N |
72
-
|`--item-name`|`-n`| Manually set the name of the event payload item (for example the reward ID in redemption events or game name in stream events). |`-n "Science & Technology"`| N |
73
-
|`--cost`|`-C`| Amount of bits or channel points redeemed/used in the event. |`-C 250`| N |
74
-
|`--description`|`-d`| Title the stream should be updated/started with. Additionally used as the category ID for Drops events. |`-d Awesome new title!`| N |
60
+
Flag | Shorthand | Description | Example | Required? (Y/N)
`--forward-address` | `-F` | Web server address for where to send mock events. | `-F https://localhost:8080` | N
63
+
`--transport` | `-T` | The method used to send events. Default is `eventsub`, but can send using `websub`. | `-T websub` | N
64
+
`--to-user` | `-t` | Denotes the receiver's TUID of the event, usually the broadcaster. | `-t 44635596` | N
65
+
`--from-user` | `-f` | Denotes the sender's TUID of the event, for example the user that follows another user or the subscriber to a broadcaster. | `-f 44635596` | N
66
+
`--gift-user` | `-g` | Used only for subcription-based events, denotes the gifting user ID | `-g 44635596` | N
67
+
`--secret` | `-s` | Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC. | `-s testsecret` | N
68
+
`--count` | `-c` | Count of events to fire. This can be used to simulate an influx of events. | `-c 100` | N
69
+
`--anonymous` | `-a` | If the event is anonymous. Only applies to `gift` and `cheer` events. | `-a` | N
70
+
`--status` | `-S` | Status of the event object, currently applies to channel points redemptions. | `-S fulfilled` | N
71
+
`--item-id` | `-i` | Manually set the ID of the event payload item (for example the reward ID in redemption events or game in stream events). | `-i 032e4a6c-4aef-11eb-a9f5-1f703d1f0b92` | N
72
+
`--item-name` | `-n` | Manually set the name of the event payload item (for example the reward ID in redemption events or game name in stream events). | `-n "Science & Technology"` | N
73
+
`--cost` | `-C` | Amount of bits or channel points redeemed/used in the event. | `-C 250` | N
74
+
`--description` | `-d` | Title the stream should be updated/started with. | `-d Awesome new title!` | N
75
+
`--game-id` | `-G` | Game ID for Drop or other relevant events. | `-G 1234` | N
0 commit comments