Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TheWeirdlings/TwitchTube
An open source streaming bot for Youtube and Twitch
https://github.com/TheWeirdlings/TwitchTube
bot python twitch youtube
Last synced: 3 months ago
JSON representation
An open source streaming bot for Youtube and Twitch
- Host: GitHub
- URL: https://github.com/TheWeirdlings/TwitchTube
- Owner: TheWeirdlings
- Archived: true
- Created: 2016-04-25T18:13:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T15:21:30.000Z (about 7 years ago)
- Last Synced: 2024-06-25T15:47:53.836Z (5 months ago)
- Topics: bot, python, twitch, youtube
- Language: Python
- Size: 147 KB
- Stars: 11
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-twitch-dev - TheWeirdlings/TwitchTube - Open source streaming bot for Youtube and Twitch. (Libraries / Python)
README
About
=========
TwitchTube [twitchtube.io](http://twitchtube.io) is an open source streaming bot for Twitch and Youtube. The bot's main purpose is to synchronize chat between Youtube and Twitch, but contains many regular bot features as well. The following features are:1. Chat Sync between Twitch and Youtube
2. Commands
3. Timers
4. Self hosting
5. Emoji Assignment to UsersWe add features every week, so feel free to open an issue request here or contact us on [twitchtube.io](http://twitchtube.io).
The bot can be self-hosted, but we are currently taking beta users for our web/mobile apps. Feel free to sign up on our webpage: [twitchtube.io Beta Signup](http://twitchtube.io/beta)
To Set up
=========Clone
---------------------
* git clone https://github.com/TheWeirdlings/TwitchTube.git
* or Fork :)Configure
---------------------
1. pip install virtualenv
2. mkdir twitchtube-env
3. virtualenv twitchtube-env
4. cd twitchtube-env
5. source Scripts/activate
6. git clone https://github.com/[username]/TwitchTube.git
7. cd Twitchtube
8. Install twitchtube `pip install -e .`
9. cp config.py.example config.pyConnect Youtube
---------------------
1. Go to https://console.developers.google.com
2. Create a new project or use an existing
3. Search for YouTube Data API v3 and enable the api
4. Select Credentials on the left hand side
5. Click create credentials, then click OAuth
6. Under application type select Other, then click create
7. Download the Json file, and rename the file to client_secrets.json
8. Copy the client_secrets.json to the root directory of twitchtube
9. Now, when you first run any Youtube worker or generator.py you will need to add the --noauth_local_webserver flag. Examples are belowConnect Twitch
---------------------
1. Copy twitchtube/twitch/twitchConfig-example.py to twitchtube/twitch/twitchConfig.py
2. Get an OAuth password from (http://www.twitchapps.com/tmi/). Use the NICK that you register
3. Fill out the twitch config with your developer information.Add a bot to your mongo database
---------------------
1. Start mongo with the mongod command
2. `python generator.py --action=create --item=bot` or `python generator.py --action=create --item=bot --noauth_local_webserver` for your first run
3. python generator.py --action=read --item=bot
* (Copy the bot id)Run the Workers
---------------------
- python workers/TwitchChatSaverWorker.py
- python workers/TwitchChatSenderWorker.py
- python workers/YoutubeSaverWorker.py
- python workers/YoutubeSenderWorker.py
- python workers/CommandListener.py (if you want the UI commands)Server Set Up
---------------------
1. Install Redis https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
2. Install mongo
3. Install nodejs https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
4. Install pm2 - npm isntall -g pm2
5. python commander.py --bot=[bot_id] --action=start# Runnings tests
- pip install pytest
- pytest
- pytest --cov-report html --cov=twitchtube tests/# Updating sup modules
- git submodule foreach git pull origin master