seperate auth and env setup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user