modbot

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: 14 Imported by: 0

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:

  1. Authenticate via OAuth
  2. Connect to your active broadcast's live chat
  3. Monitor messages for spam and bad words
  4. Allow moderators to use !ban, !timeout, and !unban commands
  5. Track message frequency for spam detection

Jump to

Keyboard shortcuts

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