1
0

♻️ Remove non needed arguments and obtain values

using helpers
This commit is contained in:
2021-06-18 19:26:20 +02:00
parent 41aaec835f
commit 5256ebe6ae
3 changed files with 15 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
import { AuthProvider } from "twitch-auth";
import { getApiClient, getAuthProvider } from "../helpers/twitch";
import { ChatClient } from "twitch-chat-client";
import { getApiClient } from "../helpers/twitch";
import { sockets } from "../webServer";
import { start } from "../helpers/scheduledActions";
@@ -14,7 +14,10 @@ export {
say
};
async function connect(authProvider: AuthProvider, channels: Array<any>) {
async function connect(channels: Array<any>) {
const authProvider = await getAuthProvider(
);
if (
chatClient &&
(