• 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/createand note down theclient idandclient secret. - Create and write down your first
access tokenandrefresh tokenherehttps://twitchtokengenerator.com. The program will automatically refresh these after the inital tokens. - rename
wrangler.example.tomltowrangler.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_usernameinwrangler.tomlto the username of the twitch account you used to create the twitch application. - Set
twitch_parser_urlinwrangler.tomlto the URL where Twitch VOD Game Type Parser is hosted. - Set the secret
clientIDto your client id which you got in step 2wrangler secret put clientID - Set the secret
clientSecretto 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 publishor 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