console.log("kees"); // const clientId = 'YOUR_TWITCH_CLIENT_ID'; // const redirectUri = 'http://localhost:1989/auth'; // const scopes = ['chat:edit', 'chat:read']; // const express = require('express'); // const tempAuthServer = express(); // const port = 1989; // const { parse: parseQueryString } = require('querystring'); // tempAuthServer.use(function (req, res, next) { // if (req.url !== "/auth") { // let token = parseQueryString(req.query.auth) // res.json(token["#access_token"]); // // settings.TWITCH.OAUTH_TOKEN = token["#access_token"]; // // fs.writeFileSync(settingsPath, ini.stringify(settings)); // // settings = ini.parse(fs.readFileSync(settingsPath, 'utf-8')); // // tempAuthServer.close(); // } // next(); // }); // const htmlString = ` // // //
//