googlevideo 재생 403(스트림 거절)은 Lavalink youtube-plugin에 유효한 poToken/visitorData가 없어서 발생. 봇이 노드 ready 시점과 2시간 주기로 poToken을 생성해 Lavalink의 POST /youtube 엔드포인트에 주입한다. - scripts/potoken-refresh.mjs: youtubei.js+bgutils-js+jsdom로 생성 후 주입 (독립 ESM 프로세스) - LavalinkManager: ready 이벤트 + 2h 인터벌로 자식 프로세스 실행 - deps: bgutils-js 3.2.0, jsdom, youtubei.js 추가 / Docker base node:22-alpine Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
35 lines
810 B
JSON
35 lines
810 B
JSON
{
|
|
"name": "music_bot_v2",
|
|
"version": "0.0.1",
|
|
"description": "discord music bot with lavalink",
|
|
"license": "ISC",
|
|
"author": "tkrmagid",
|
|
"type": "commonjs",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node .",
|
|
"dev": "ts-node src/index.ts",
|
|
"test": "ts-node src/test.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/node": "^25.5.0",
|
|
"@types/spotify-api": "^0.0.26",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^6.0.2"
|
|
},
|
|
"dependencies": {
|
|
"better-sqlite3": "^12.8.0",
|
|
"bgutils-js": "3.2.0",
|
|
"colors": "^1.4.0",
|
|
"discord.js": "^14.25.1",
|
|
"dotenv": "^17.3.1",
|
|
"ioredis": "^5.10.1",
|
|
"jsdom": "^30.0.1",
|
|
"shoukaku": "^4.3.0",
|
|
"undici": "^7.24.7",
|
|
"youtubei.js": "^18.0.0"
|
|
}
|
|
}
|