diff --git a/index.js b/index.js index 94cf7c1..23318c3 100644 --- a/index.js +++ b/index.js @@ -6,8 +6,10 @@ const userBearerFile = process.env.USER_BEARER_FILE; const instance = process.env.INSTANCE || 'shigusegubu.club'; const videoId = process.env.VIDEO_ID; -const botBearer = fs.readFileSync(botBearerFile, 'utf-8'); -const userBearer = fs.readFileSync(userBearerFile, 'utf-8'); +//const botBearer = fs.readFileSync(botBearerFile, 'utf-8'); +//const userBearer = fs.readFileSync(userBearerFile, 'utf-8'); +const botBearer = '' +const userBearer = '' const globalState = { exit: false, @@ -39,12 +41,10 @@ const app = await fetch(`https://${instance}/api/v1/apps`, { method: 'POST', mode: 'cors', }) -/* */ -// console.log('APP REG STATUS', app.status) -//const { client_id, client_secret } = await app.json() -//console.log({ client_id, client_secret }) +console.log('APP REG STATUS', app.status) +const { client_id, client_secret } = await app.json() +console.log({ client_id, client_secret }) -/* const bearer = await fetch(`https://${instance}/oauth/token`, { headers: { accept: 'application/json',