TwitchBotEx
This is an example project that utilizes the bot
package. You can read my walkthrough of bot
and/or grab it with go get
...
$ go get github.com/foresthoffman/twitchbotex
TL;DR
Add a private/oauth.json
file next to main.go
, and put the OAuth token you receive from Twitch's OAuth Generator into the private/oauth.json
file with the key "password".
e.g.
{
"password": "oauth:secretsecretsecretsecretsecret"
}
Then, open main.go
and replace the Channel
and Name
values with your own. Channel
must be lowercase.
Build and run:
$ go fmt ./... && go build && ./twitchbotex
That's all, enjoy!