oops
This commit is contained in:
parent
82c09f59da
commit
d0784dac22
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
|
@ -6,8 +6,8 @@ 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 globalState = {
|
const globalState = {
|
||||||
exit: false,
|
exit: false,
|
||||||
|
|
@ -43,7 +43,7 @@ const app = await fetch(`https://${instance}/api/v1/apps`, {
|
||||||
//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