Skip to content

If this than that for twitch and home assistant or api calls

Notifications You must be signed in to change notification settings

charlyschulte/twitch_bot

Repository files navigation

Twitch Chat, Follower and Reward bot

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

Features

  • Trigger Home Assistant Scripts
  • Trigger Home Assistant Scenes
  • Trigger Api´s
  • Cross platform

Install

  1. Install nodejs

  2. 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"

  3. create dev account twitch https://dev.twitch.tv/ with main account

  4. 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"

  5. Clone the project

  git clone https://github.com/charlyschulte/twitch_bot
  1. Go to the project directory
  cd twitch_bot
  1. Install dependencies
  npm install
  1. fill informations : settings.json
  2. run:
node runupdate.js
  1. view rewards.json and fill ids in settings

  2. Start the server

  npm run start

Docker startup

docker-compose up -d --force-recreate --build

About

If this than that for twitch and home assistant or api calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published