Documentation
¶
Overview ¶
Example: Moderation Bot
This example demonstrates how to create a YouTube live chat moderation bot with auto-moderation features like spam detection, bad word filtering, and user management.
Usage:
export YOUTUBE_CLIENT_ID=your-client-id export YOUTUBE_CLIENT_SECRET=your-client-secret go run main.go
The bot will:
- Authenticate via OAuth
- Connect to your active broadcast's live chat
- Monitor messages for spam and bad words
- Allow moderators to use !ban, !timeout, and !unban commands
- Track message frequency for spam detection
Click to show internal directories.
Click to hide internal directories.