Skip to content

Commit

Permalink
Merge pull request #48 from twitchdev/feature/release
Browse files Browse the repository at this point in the history
Feature/release
  • Loading branch information
lleadbet authored Mar 18, 2021
2 parents a754c72 + 5d8c5fd commit 9dcc2c8
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 61 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version = "0.5.0"

release:
docker build . -t twitch-cli:latest
docker run --rm --privileged \
Expand All @@ -10,7 +8,7 @@ release:
twitch-cli:latest --rm-dist

build:
go build --ldflags "-X main.buildVersion=${version}"
go build --ldflags "-X main.buildVersion=source"

build_all:
xgo -out build/twitch --targets "darwin/amd64,windows/amd64,linux/amd64" --ldflags "-X main.buildVersion=$(version)" ./
xgo -out build/twitch --targets "darwin/amd64,windows/amd64,linux/amd64" --ldflags "-X main.buildVersion=source" ./
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Twitch CLI (Open Beta Version)
# Twitch CLI

- [Twitch CLI (Open Beta Version)](#twitch-cli-open-beta-version)
- [Twitch CLI](#twitch-cli)
- [Download](#download)
- [Homebrew](#homebrew)
- [Scoop](#scoop)
Expand Down
91 changes: 49 additions & 42 deletions docs/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,31 @@ Used to either create or send mock events for use with local webhooks testing.

**Args**

| Argument | Description |
|---------------------|------------------------------------------------------------------------------------------------------------|
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
| `transaction` | Bits in Extensions transactions events. |
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
| `raid` | Channel Raid event with a random viewer count. |
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
| `stream-change` | Stream Changed event. |
| `streamup` | Stream online event. |
| `streamdown` | Sstream offline event. |
| `add-moderator` | Channel moderator add event. |
| `remove-moderator` | Channel moderator removal event. |
| `ban` | Channel ban event. |
| `unban` | Channel unban event. |
| Argument | Description |
|-----------------------|------------------------------------------------------------------------------------------------------------|
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
| `transaction` | Bits in Extensions transactions events. |
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
| `raid` | Channel Raid event with a random viewer count. |
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
| `stream-change` | Stream Changed event. |
| `streamup` | Stream online event. |
| `streamdown` | Sstream offline event. |
| `add-moderator` | Channel moderator add event. |
| `remove-moderator` | Channel moderator removal event. |
| `ban` | Channel ban event. |
| `unban` | Channel unban event. |
| `hype-train-begin` | Channel hype train start event. |
| `hype-train-progress` | Channel hype train progress event. |
| `hype-train-end` | Channel hype train end event. |



**Flags**
Expand Down Expand Up @@ -104,27 +108,30 @@ Allows you to test if your webserver responds to subscription requests properly.

**Args**

| Argument | Description |
|---------------------|------------------------------------------------------------------------------------------------------------|
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
| `transaction` | Bits in Extensions transactions events. |
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
| `raid` | Channel Raid event with a random viewer count. |
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
| `stream-change` | Stream Changed event. |
| `streamup` | Stream online event. |
| `streamdown` | Sstream offline event. |
| `add-moderator` | Channel moderator add event. |
| `remove-moderator` | Channel moderator removal event. |
| `ban` | Channel ban event. |
| `unban` | Channel unban event. |
| Argument | Description |
|-----------------------|------------------------------------------------------------------------------------------------------------|
| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. |
| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. |
| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. |
| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. |
| `transaction` | Bits in Extensions transactions events. |
| `add-reward` | Channel Points EventSub event for a Custom Reward being added. |
| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. |
| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. |
| `add-redemption` | Channel Points EventSub event for a redemption being performed. |
| `update-redemption` | Channel Points EventSub event for a redemption being updated. |
| `raid` | Channel Raid event with a random viewer count. |
| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. |
| `stream-change` | Stream Changed event. |
| `streamup` | Stream online event. |
| `streamdown` | Sstream offline event. |
| `add-moderator` | Channel moderator add event. |
| `remove-moderator` | Channel moderator removal event. |
| `ban` | Channel ban event. |
| `unban` | Channel unban event. |
| `hype-train-begin` | Channel hype train start event. |
| `hype-train-progress` | Channel hype train progress event. |
| `hype-train-end` | Channel hype train end event. |

**Flags**

Expand Down
26 changes: 13 additions & 13 deletions internal/models/streamup.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ type StreamUpWebSubResponse struct {
}

type StreamUpWebSubResponseData struct {
ID string `json:"id"`
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
GameID string `json:"game_id"`
Type string `json:"type"`
Title string `json:"title"`
ViewerCount int64 `json:"viewer_count"`
StartedAt string `json:"started_at"`
Language string `json:language`
ThumbnailURL string `json:thumbnail_url`
TagIDs []string `json:"tag_ids"`
}
ID string `json:"id"`
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
GameID string `json:"game_id"`
Type string `json:"type"`
Title string `json:"title"`
ViewerCount int64 `json:"viewer_count"`
StartedAt string `json:"started_at"`
Language string `json:"language"`
ThumbnailURL string `json:"thumbnail_url"`
TagIDs []string `json:"tag_ids"`
}

0 comments on commit 9dcc2c8

Please sign in to comment.