An easy to use, open source twitch bot that can be triggered by chat commands, Follows and Rewards. It can directly trigger Home Assistant Scenes and Scripts and also call api endpoints for things like companion. written in Nodejs
- Trigger Home Assistant Scripts
- Trigger Home Assistant Scenes
- Trigger Api´s
- Cross platform
-
Install nodejs
-
generate oauth token here: //https://twitchapps.com/tmi/ login with bot account and fill it in settings.json at "onetimepassword" and username of the bot at "botname"
-
create dev account twitch https://dev.twitch.tv/ with main account
-
create access token https://twitchapps.com/tokengen/ with scopes: channel:manage:redemptions user:edit:follows channel:read:redemptions channel:read:subscriptions login with main account and fill information at "accessToken" and channel name at "channel"
-
Clone the project
git clone https://github.com/charlyschulte/twitch_bot
- Go to the project directory
cd twitch_bot
- Install dependencies
npm install
- fill informations : settings.json
- run:
node runupdate.js
-
view rewards.json and fill ids in settings
-
Start the server
npm run start
docker-compose up -d --force-recreate --build