The bot replies to live chat messages in a Live Stream (obviously :p). It currently has a limited set of commands to respond to, but you can easily add more.
-
Goto Google Developers Console and create a new project.
-
Enable YouTube Data API v3
-
Then from the Credentials tab, create a new OAuth Client ID and select the Web Application option.
-
Copy the Client ID and Client Secret and paste them in a
.env
file. -
Then Copy & Paste the following commands in your terminal:
git clone https://github.com/gulraiznoorbari/YouTube_Live_Stream_Chat_Bot.git
cd YouTube_Live_Stream_Chat_Bot
python bot.py
The bot will ask you to authenticate yourself with your Google Account.
After that, you will be prompted to enter a Live Stream Id in you terminal:
Here, the Live Stream Id is qDWw4sAD3zY
You can get in touch with me on my LinkedIn Profile:
You can also follow my GitHub Profile to stay updated about my latest projects:
If you liked the repo then kindly support it by giving it a star ⭐!
If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.