seperate auth and env setup

This commit is contained in:
Darius
2025-09-26 22:44:33 +02:00
parent 42ad079589
commit 44f3f7af0b
5 changed files with 40 additions and 24 deletions

View File

@@ -3,6 +3,7 @@ import type { ChatMessage } from "@twurple/chat";
import { commands } from "../commands/collection.ts";
import type { ICommand } from "../commands/interface.ts";
import { Config } from "../config/config.ts";
import { logInfo } from "../util/logger.ts";
import { BaseEvent } from "./base-event.ts";
import type { EventName } from "./registry.ts";
@@ -27,6 +28,7 @@ async function checkMessage(
text: string,
msg: ChatMessage,
) {
logInfo(`message seen: ${channel} - ${user} - ${text}`);
const prefix = Config.prefix;
if (!text.startsWith(prefix)) return;