Skip to content

Commit 723eabb

Browse files
authored
Add documentation for passing your own token (#19)
* Clean up flags * Add link to Twitch docs * Change to ACCESS_TOKEN
1 parent 75ea5a2 commit 723eabb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ redirectPort: "8080"
4646
`ttchat` would listen on `http://localhost:8080` for Twitch's authentication result. So, your Twitch application must have `http://localhost:8080` for a redirect URL.
4747

4848
# Running
49-
`ttchat -h`
49+
See `ttchat -h` for options and arguments
5050

5151
`ttchat --channel ludwig`
52+
53+
Obtaining an access token requires you to login via your default browswer. To provide your own token, use the `--token` flag.
54+
See https://dev.twitch.tv/docs/authentication/getting-tokens-oauth for more details on obtaining your own access token.
55+
56+
`ttchat -c ludwing --token $ACCESS_TOKEN`

internal/cmd/entrypoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ chat using a small configuration file. See repo for more details.
6868
6969
ttchat -h
7070
ttchat --channel ludwig
71-
ttchat --channel ludwig --lines 5
71+
ttchat -c ludwing --token $ACCESS_TOKEN
7272
`,
7373
Run: func(cmd *cobra.Command, args []string) {
7474
rand.Seed(time.Now().UTC().UnixNano())

0 commit comments

Comments
 (0)