Files
pkrstarsbot/twitch_extension_delete/live/public/config.js
2021-02-16 23:07:41 +01:00

13 lines
201 B
JavaScript

let token, userId;
const twitch = window.Twitch.ext;
twitch.onContext((context) => {
twitch.rig.log(context);
});
twitch.onAuthorized((auth) => {
token = auth.token;
userId = auth.userId;
});