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
// flags for forwarding functionality/changing payloads
76
78
triggerCmd.Flags().StringVarP(&forwardAddress, "forward-address", "F", "", "Forward address for mock event.")
77
-
triggerCmd.Flags().StringVarP(&transport, "transport", "T", "eventsub", fmt.Sprintf("Preferred transport method for event. Defaults to Webhooks 2/EventSub.\nSupported values: %s", events.ValidTransports()))
79
+
triggerCmd.Flags().StringVarP(&transport, "transport", "T", "eventsub", fmt.Sprintf("Preferred transport method for event. Defaults to /EventSub.\nSupported values: %s", events.ValidTransports()))
80
+
triggerCmd.Flags().StringVarP(&secret, "secret", "s", "", "Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC.")
81
+
82
+
// per-topic flags
78
83
triggerCmd.Flags().StringVarP(&toUser, "to-user", "t", "", "User ID of the receiver of the event. For example, the user that receives a follow. In most contexts, this is the broadcaster.")
79
84
triggerCmd.Flags().StringVarP(&fromUser, "from-user", "f", "", "User ID of the user sending the event, for example the user following another user.")
80
85
triggerCmd.Flags().StringVarP(&giftUser, "gift-user", "g", "", "Used only for \"gift\" events. Denotes the User ID of the gifting user.")
81
86
triggerCmd.Flags().BoolVarP(&isAnonymous, "anonymous", "a", false, "Denotes if the event is anonymous. Only applies to Gift and Sub events.")
82
87
triggerCmd.Flags().IntVarP(&count, "count", "c", 1, "Count of events to events. This will simulate a sub gift, or large number of cheers.")
83
-
triggerCmd.Flags().StringVarP(&secret, "secret", "s", "", "Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC.")
84
88
triggerCmd.Flags().StringVarP(&status, "status", "S", "", "Status of the event object, currently applies to channel points redemptions.")
85
-
triggerCmd.Flags().StringVarP(&itemID, "item-id", "i", "", "Manually set the ID of the event payload item (for example the reward ID in redemption events).")
89
+
triggerCmd.Flags().StringVarP(&itemID, "item-id", "i", "", "Manually set the ID of the event payload item (for example the reward ID in redemption events). For stream events, this is the game ID.")
90
+
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.")
86
91
triggerCmd.Flags().Int64VarP(&cost, "cost", "C", 0, "Amount of bits or channel points redeemed/used in the event.")
87
-
triggerCmd.Flags().StringVarP(&streamTitle, "description", "d", "", "Title the stream should be updated with.")
92
+
triggerCmd.Flags().StringVarP(&description, "description", "d", "", "Title the stream should be updated with.")
88
93
89
94
// retrigger flags
90
95
retriggerCmd.Flags().StringVarP(&forwardAddress, "forward-address", "F", "", "Forward address for mock event.")
@@ -94,7 +99,7 @@ func init() {
94
99
95
100
// verify-subscription flags
96
101
verifyCmd.Flags().StringVarP(&forwardAddress, "forward-address", "F", "", "Forward address for mock event.")
97
-
verifyCmd.Flags().StringVarP(&transport, "transport", "T", "eventsub", fmt.Sprintf("Preferred transport method for event. Defaults to Webhooks 2/EventSub.\nSupported values: %s", events.ValidTransports()))
102
+
verifyCmd.Flags().StringVarP(&transport, "transport", "T", "eventsub", fmt.Sprintf("Preferred transport method for event. Defaults to EventSub.\nSupported values: %s", events.ValidTransports()))
98
103
verifyCmd.Flags().StringVarP(&secret, "secret", "s", "", "Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC.")
|`--forward-address`|`-F`| Web server address for where to send mock events. |`-F https://localhost:8080`| N |
51
-
|`--transport`|`-T`| The method used to send events. Default is eventsub, but can send using websub. |`-T websub`| N |
52
-
|`--to-user`|`-t`| Denotes the receiver's TUID of the event, usually the broadcaster. |`-t 44635596`| N |
53
-
|`--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 |
54
-
|`--gift-user`|`-g`| Used only for subcription-based events, denotes the gifting user ID |`-g 44635596`| N |
55
-
|`--secret`|`-s`| Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC. |`-s testsecret`| N |
56
-
|`--count`|`-c`| Count of events to fire. This can be used to simulate an influx of subscriptions. |`-c 100`| N |
57
-
|`--anonymous`|`-a`| If the event is anonymous. Only applies to `gift` and `cheer` events. |`-a`| N |
58
-
|`--status`|`-S`| Status of the event object, currently applies to channel points redemptions. |`-S fulfilled`| N |
59
-
|`--item-id`|`-i`| Manually set the ID of the event payload item (for example the reward ID in redemption events). |`-i 032e4a6c-4aef-11eb-a9f5-1f703d1f0b92`| N |
60
-
|`--cost`|`-C`| Amount of bits or channel points redeemed/used in the event. |`-C 250`| N |
61
-
|`--description`|`-d`| Title the stream should be updated/started with. |`-d Awesome new title!`| N |
48
+
| Flag | Shorthand | Description | Example | Required? (Y/N) |
|`--forward-address`|`-F`| Web server address for where to send mock events. |`-F https://localhost:8080`| N |
51
+
|`--transport`|`-T`| The method used to send events. Default is eventsub, but can send using websub. |`-T websub`| N |
52
+
|`--to-user`|`-t`| Denotes the receiver's TUID of the event, usually the broadcaster. |`-t 44635596`| N |
53
+
|`--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 |
54
+
|`--gift-user`|`-g`| Used only for subcription-based events, denotes the gifting user ID |`-g 44635596`| N |
55
+
|`--secret`|`-s`| Webhook secret. If defined, signs all forwarded events with the SHA256 HMAC. |`-s testsecret`| N |
56
+
|`--count`|`-c`| Count of events to fire. This can be used to simulate an influx of subscriptions. |`-c 100`| N |
57
+
|`--anonymous`|`-a`| If the event is anonymous. Only applies to `gift` and `cheer` events. |`-a`| N |
58
+
|`--status`|`-S`| Status of the event object, currently applies to channel points redemptions. |`-S fulfilled`| N |
59
+
|`--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 |
60
+
|`--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 |
61
+
|`--cost`|`-C`| Amount of bits or channel points redeemed/used in the event. |`-C 250`| N |
62
+
|`--description`|`-d`| Title the stream should be updated/started with. |`-d Awesome new title!`| N |
0 commit comments