refactor chatwidget code, add prefetching emotes

This commit is contained in:
2025-07-22 18:40:57 +01:00
parent fb6091c9c0
commit cc3176ea2f
15 changed files with 180 additions and 129 deletions

View File

@@ -1,12 +1,12 @@
import { EventSubChannelChatMessageEvent } from "@twurple/eventsub-base"
import { chatterId, streamerId, eventSub, commandPrefix, singleUserMode, streamerUsers } from "..";
import { streamerId, eventSub, commandPrefix, streamerUsers } from "..";
import { User } from "../user";
import commands, { sendMessage } from "../commands";
import { redis } from "bun";
import { isAdmin } from "../lib/admins";
import cheers from "../cheers";
import logger from "../lib/logger";
import { addMessageToChatWidget } from "../chatwidget/message";
import { addMessageToChatWidget } from "../web/chatWidget/message";
import { isInvuln } from "../lib/invuln";
logger.info(`Loaded the following commands: ${commands.keys().toArray().join(', ')}`);