chatbot

command
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 12 Imported by: 0

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:

  1. Start a local server for OAuth callback
  2. Open a browser for authentication
  3. Connect to the live chat of your active broadcast
  4. Respond to !hello and !time commands
  5. Log all chat events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL