fix: 修复 Twitch 集成 - 降级到 twitchio 2.x
- 从 twitchio 3.x 降级到 2.10.0 (IRC-based) - 3.x 使用 EventSub API 需要更复杂的配置 - 2.x 使用 IRC 方式更简单可靠 - 简化 Twitch 配置,只需要 Token 和频道名 - 移除 client_id, client_secret, bot_id 要求 - 更新 .env.example 配置说明
This commit is contained in:
@@ -65,3 +65,21 @@
|
||||
# Force mock mode (no API calls, uses predefined responses)
|
||||
# =============================================================================
|
||||
# LLM_MOCK_MODE=true
|
||||
|
||||
# =============================================================================
|
||||
# Twitch Configuration for Live Stream Integration (twitchio 2.x)
|
||||
# =============================================================================
|
||||
# Get your OAuth Token from: https://twitchtokengenerator.com/
|
||||
# 1. Select "Bot Chat Token"
|
||||
# 2. Authorize with your Twitch account
|
||||
# 3. Copy the Access Token (starts with oauth:)
|
||||
#
|
||||
# TWITCH_TOKEN=oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
# TWITCH_CHANNEL_NAME=your_channel_name
|
||||
# TWITCH_COMMAND_PREFIX=!
|
||||
|
||||
# =============================================================================
|
||||
# Game Configuration
|
||||
# =============================================================================
|
||||
# GAME_DIFFICULTY=casual
|
||||
# DEBUG=true
|
||||
|
||||
Reference in New Issue
Block a user