To run this code you must:
- Login to https://dev.twitch.tv/
- Create a new application on https://dev.twitch.tv/console/apps

- Authorize your account with a url that looks like:
- https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=<<<YOUR_CLIENT_ID>>>&redirect_uri=<<<YOUR_REDIRECT_URI>>>&scope=channel:read:redemptions%20user:read:chat&state=<<<YOUR_CUSTOM_STATE>>>
- Enter all the required info in a private_config.ts file based on the private_config.example.ts file.
- Some of the informations you should be getting from the api, notably the redeem id's you can get by logging the event data

Finally, run
deno run twitch_bot_example.tsThat's it! now you should be able to run the bot.