log
This commit is contained in:
parent
604b617c52
commit
be99df9a89
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue