So i’m working with NodeJS and have written a basic chatbot based on the tutorial that was given using tmi.js and dice rolling thing.
My purpose of the bot is to just host the api calls locally and only have it interact with my twitch account and my bot account. So what would you suggest are the workflows i should use since I am a bit confused by the oauth2.
I understand the basic principle is to request an access token valid for a certain time, with which the api request can be called and the access token needs to be refreshed. Can this process be done using a middleware of my own or is it better to use something like Passport? I don’t intend for this bot to be used by the public mostly building it to understand more coding practices etc.
I noticed most of documentation for twitch is in curl, can it be convered to a “regular” GET / POST request using something like Express or does it require a specific package.
Theress nothing to it, each documentation item, tells you the URL to call, the METHOD to use, any optional query strings, and JSON body stuff (for updating things).
So no really sure what you are after for a guide to follow, to convert documentation into code?!