cleanup
This commit is contained in:
parent
d76d7847a0
commit
dcd41fa7d5
1 changed files with 7 additions and 7 deletions
14
index.js
14
index.js
|
|
@ -6,8 +6,10 @@ const userBearerFile = process.env.USER_BEARER_FILE;
|
||||||
const instance = process.env.INSTANCE || 'shigusegubu.club';
|
const instance = process.env.INSTANCE || 'shigusegubu.club';
|
||||||
const videoId = process.env.VIDEO_ID;
|
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');
|
||||||
|
const botBearer = ''
|
||||||
|
const userBearer = ''
|
||||||
|
|
||||||
const globalState = {
|
const globalState = {
|
||||||
exit: false,
|
exit: false,
|
||||||
|
|
@ -39,12 +41,10 @@ const app = await fetch(`https://${instance}/api/v1/apps`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
})
|
})
|
||||||
/* */
|
console.log('APP REG STATUS', app.status)
|
||||||
// console.log('APP REG STATUS', app.status)
|
const { client_id, client_secret } = await app.json()
|
||||||
//const { client_id, client_secret } = await app.json()
|
console.log({ client_id, client_secret })
|
||||||
//console.log({ client_id, client_secret })
|
|
||||||
|
|
||||||
/*
|
|
||||||
const bearer = await fetch(`https://${instance}/oauth/token`, {
|
const bearer = await fetch(`https://${instance}/oauth/token`, {
|
||||||
headers: {
|
headers: {
|
||||||
accept: 'application/json',
|
accept: 'application/json',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue