YouTube LiveStream Chatbot
- Make sure Python 2.7 with pip is installed (Python 3 should work but hasn't been tested)
- pip install configparser oauth2client httplib2 requests
- Make a new project with the Google API Console and enable the Youtube Data API.
- Add OAuth API credentials, download the JSON file and save it as client_secrets.json in the project folder
- Run auth.py ("python auth.py"), approve the OAuth request in your webbrowser, and copy the auth code to the console
- clear the console ("cls" in Windows)
- Start the stream so that the bot can fetch the live chat identifier
- Run main.py ("python main.py")
https://developers.google.com/youtube/v3/live/docs/liveChatMessages
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list
https://developers.google.com/youtube/v3/live/getting-started
https://developers.google.com/api-client-library/python/auth/installed-app