Implement Twitch API connector
This commit is contained in:
parent
2ef965f749
commit
df68c990fc
6 changed files with 85 additions and 2 deletions
|
@ -4,6 +4,18 @@ if (!process.env.PORT) {
|
|||
}
|
||||
export const port: number = parseInt(process.env.PORT as string, 10);
|
||||
|
||||
if (!process.env.URL_PREFIX) {
|
||||
console.log("Missing environment variable URL_PREFIX");
|
||||
process.exit(1);
|
||||
}
|
||||
export const urlPrefix: string = process.env.URL_PREFIX;
|
||||
|
||||
if (!process.env.TWITCH_CLIENTID) {
|
||||
console.log("Missing environment variable TWITCH_CLIENTID");
|
||||
process.exit(1);
|
||||
}
|
||||
export const twitchClientId: string = process.env.TWITCH_CLIENTID;
|
||||
|
||||
if (!process.env.TWITCH_SECRET) {
|
||||
console.log("Missing environment variable TWITCH_SECRET");
|
||||
process.exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue