Files
tts_bot/.env.example
Claude Owner 26b4525316 fix(tts): follow user across voice channels without dropping session; remove Chzzk cookies
- VoiceSession.moveTo: destroy(false) + join instead of disconnect()/destroy().
  The old path sent a leave payload first, so Discord emitted
  voiceStateUpdate(channel=null) and endSession() killed the session
  while moving.
- voiceStateUpdate: when the bot itself is moved, only sync the channel.
- getVoiceChannel: user's channel first, then the session's channel,
  then the bot's cached voice channel.
- Remove CHZZK_NID_AUT/SES and token fetch; Chzzk TTS works without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:35:26 +09:00

35 lines
1.2 KiB
Plaintext

# Discord 봇 토큰
TOKEN=
# Discord 애플리케이션 ID
APPID=
# 명령어 prefix (예: !)
PREFIX=!
# SQLite DB 파일 경로 (예: ./db/tts.db)
DBPATH=./db/tts.db
# 개발 길드 ID. `npm run dev` 시 슬래시 명령이 이 길드에만 등록되어 즉시 반영되고,
# `npm run prod` 실행 시 DEV=true 면 이 길드의 기존 슬래시 명령을 먼저 wipe 한 뒤 전역 등록
GUILDID=
# 시그니처 서버 host:port (선택, 미설정 시 192.168.10.5:2967)
SIGNATURE_HOST=
# TTS 외부 경로 (선택, 현재 호출처 없음. 향후 사용 대비 환경변수만 받아둠)
TTSPATH=
# 개발 모드 플래그 (선택, 기본 false)
# - 봇 기동 시(clientReady): true 면 GUILDID 길드에 슬래시 명령을 길드 한정 등록 (즉시 반영용)
# - `npm run prod` 실행 시: true 면 GUILDID 길드의 기존 슬래시를 먼저 wipe 한 뒤 전역 등록 (중복 정리)
# false 면 전역 등록만 (운영 배포)
DEV=false
# true 면 명령어 오류 스택을 콘솔에 출력 (선택, 기본 false)
DEBUG=false
# 치환 사전(JSON 배열). 기본 사전(def_replaceObj)과 병합 (선택)
# 예: REPLACETEXT=[{"ㅋㅋ":"크크"}]
REPLACETEXT=[{}]