1
0

🚚 Move chatClient, pubSubClient and webServer to helpers

This commit is contained in:
2021-06-18 19:31:20 +02:00
parent 5256ebe6ae
commit fa1e87115b
5 changed files with 13 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import { getApiClient, getAuthProvider } from "../helpers/twitch"; import { getApiClient, getAuthProvider } from "./twitch";
import { ChatClient } from "twitch-chat-client"; import { ChatClient } from "twitch-chat-client";
import { sockets } from "../webServer"; import { sockets } from "./webServer";
import { start } from "../helpers/scheduledActions"; import { start } from "./scheduledActions";
let chatClient: ChatClient; let chatClient: ChatClient;

View File

@@ -1,7 +1,7 @@
import { PubSubClient, PubSubRedemptionMessage } from "twitch-pubsub-client"; import { PubSubClient, PubSubRedemptionMessage } from "twitch-pubsub-client";
import { broadcast, chatClient, say } from "../chatClient"; import { broadcast, chatClient, say } from "./chatClient";
import { getApiClient, getUsernameFromId } from "../helpers/twitch"; import { getApiClient, getUsernameFromId } from "./twitch";
import { saveScheduledActions, scheduledActions } from "../helpers/scheduledActions"; import { saveScheduledActions, scheduledActions } from "./scheduledActions";
import { UserIdResolvable } from "twitch"; import { UserIdResolvable } from "twitch";

View File

@@ -1,5 +1,5 @@
import { promises as fs } from "fs"; import { promises as fs } from "fs";
import { handleClientAction } from "../chatClient"; import { handleClientAction } from "./chatClient";
import { resolve } from "path"; import { resolve } from "path";
export { export {

View File

@@ -1,12 +1,12 @@
import { IncomingMessage, Server } from "http"; import { IncomingMessage, Server } from "http";
import { broadcast, handleClientAction } from "../chatClient"; import { broadcast, handleClientAction } from "./chatClient";
import { saveScheduledActions, scheduledActions } from "../helpers/scheduledActions"; import { saveScheduledActions, scheduledActions } from "./scheduledActions";
import { AddressInfo } from "net"; import { AddressInfo } from "net";
import { Socket } from "net"; import { Socket } from "net";
import WebSocket from "ws"; import WebSocket from "ws";
import express from "express"; import express from "express";
import { isDevelopment } from "../helpers/util"; import { isDevelopment } from "./util";
import { join } from "path"; import { join } from "path";
const app = express(); const app = express();

View File

@@ -1,6 +1,6 @@
import { connect } from "./chatClient"; import { connect } from "./helpers/chatClient";
import { listen } from "./webServer"; import { listen } from "./helpers/webServer";
import { registerUserListener } from "./pubSubClient"; import { registerUserListener } from "./helpers/pubSubClient";
const channel = "alexbcberio"; const channel = "alexbcberio";