• Cloudflare free tier account • wrangler • node (recommend using nvm to install)
- Clone this repository into a directory
git clone https://github.com/samerbam/twitch-timestamper
- Create twitch appliation here
https://dev.twitch.tv/console/apps/create
and note down theclient id
andclient secret
. - Create and write down your first
access token
andrefresh token
herehttps://twitchtokengenerator.com
. The program will automatically refresh these after the inital tokens. - rename
wrangler.example.toml
towrangler.toml
- Create kv:namespace named tokens
wrangler kv:namespace create "tokens"
- Create preview kv:namespace named tokens
wrangler kv:namespace create --preview "NAMESPACE"
- Set
twitch_username
inwrangler.toml
to the username of the twitch account you used to create the twitch application. - Set
twitch_parser_url
inwrangler.toml
to the URL where Twitch VOD Game Type Parser is hosted. - Set the secret
clientID
to your client id which you got in step 2wrangler secret put clientID
- Set the secret
clientSecret
to your client secret which you got in step 2wrangler secret put clientSecret
- Install npm dependencies
npm install
(might need to manually copy the @twurple node_module in this repo back into the node_module folder after npm install) - Publish to your cloudflare subdomain with
wrangler publish
or run locally withwrangler dev
NOTE: I recommend downloading the twurple library with npm and removing all instances of @d-fischer/cross-fetch
manually, However, this is included for reference.
* Removed all instances of `@d-fischer/cross-fetch` in @twurple
* Included module here.
https://github.com/samerbam/Twitch-VOD-Game-Type-Parser