From dcd41fa7d540c944bf1d529393489a5b4911995b Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Jan 2026 16:41:39 +0200 Subject: [PATCH] cleanup --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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',