1
0
This repository has been archived on 2022-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
twitch-channel-redemptions/index.ts
2021-06-18 18:35:34 +02:00

20 lines
514 B
TypeScript

import { getApiClient, getAuthProvider, } from "./src/backend/helpers/twitch";
import { connect } from "./src/backend/chatClient";
import { listen, } from "./src/backend/webServer";
import { registerUserListener } from "./src/backend/pubSubClient";
const channel = "alexbcberio";
async function init() {
const apiClient = await getApiClient();
await registerUserListener(apiClient, channel);
const authProvider = await getAuthProvider();
await connect(authProvider, [channel]);
listen();
}
init();