This commit is contained in:
Henry Jameson 2026-01-14 15:59:17 +02:00
commit be99df9a89

View file

@ -9,6 +9,7 @@ const videoId = process.env.VIDEO_ID;
const botBearer = fs.readFileSync(botBearerFile, 'utf-8'); const botBearer = fs.readFileSync(botBearerFile, 'utf-8');
const userBearer = fs.readFileSync(userBearerFile, 'utf-8'); const userBearer = fs.readFileSync(userBearerFile, 'utf-8');
console.log('"' + botBearer + '"')
const globalState = { const globalState = {
exit: false, exit: false,
currentlyLive: false, currentlyLive: false,
@ -16,7 +17,7 @@ const globalState = {
const headers = (bearer) => ({ const headers = (bearer) => ({
accept: '*/*', accept: '*/*',
authorization: `Bearer ${bearer}`, authorization: `Bearer ${bearer.trim()}`,
'cache-control': 'no-cache', 'cache-control': 'no-cache',
'content-type': 'application/json', 'content-type': 'application/json',
pragma: 'no-cache', pragma: 'no-cache',