Documentation
¶
Overview ¶
Example: Basic Chat Bot
This example demonstrates how to create a simple YouTube live chat bot that responds to messages and handles various chat events.
Usage:
export YOUTUBE_CLIENT_ID=your-client-id export YOUTUBE_CLIENT_SECRET=your-client-secret go run main.go
The bot will:
- Start a local server for OAuth callback
- Open a browser for authentication
- Connect to the live chat of your active broadcast
- Respond to !hello and !time commands
- Log all chat events
Click to show internal directories.
Click to hide internal directories.