A simple bot designed to integrate with Twitch custom channel point rewards. RewardBot snoops on your twitch chat using ComfyJS, identifies rewards with configured actions, and performs those actions automatically.
RewardBot is written in NodeJs. You'll need to install NodeJs and Python (2 or 3).
Then edit the a ./resources/.env file so that it contains your channel name and an oauth token. To create the OAUTH token you can use https://twitchapps.com/tmi/
This repository includes an example config.json file that should help you get started. You will need to define a list of commands for the bot to perform. Commands must have a twitch_reward_id and an action. Actions currently include:
- Press hotkeys (easy way to integrate with OBS or other programs)
- Whisper at bot (good for invoking commands on Streamlabs chatbot!)
- Perform one of a list of actions at random!
Create a custom reward on your Twitch channel.
Open InstaFluff's reward ID finder tool:
https://www.instafluff.tv/TwitchCustomRewardID/?channel=yourchannel
(edit the URL to include your twitch channel name.)
Redeem your custom reward in your twitch chat, and the tool should display your command's reward ID.
Edit the included config.json file to contain your custom commands and actions!
The included scripts (run.cmd for Windows, run.sh for Mac/linux) will get you going!