Updated function name

This commit is contained in:
2025-09-29 00:59:31 -04:00
parent 850a156e1d
commit f18685c371

View File

@@ -2,8 +2,6 @@ import type { Context } from "#root/bot/context.js";
import type { Config } from "#root/config.js"; import type { Config } from "#root/config.js";
import type { Logger } from "#root/logger.js"; import type { Logger } from "#root/logger.js";
import type { BotConfig } from "grammy"; import type { BotConfig } from "grammy";
// import { adminFeature } from "#root/bot/features/admin.js";
import { languageFeature } from "#root/bot/features/language.js";
import { unhandledFeature } from "#root/bot/features/unhandled.js"; import { unhandledFeature } from "#root/bot/features/unhandled.js";
import { welcomeFeature } from "#root/bot/features/welcome.js"; import { welcomeFeature } from "#root/bot/features/welcome.js";
import { errorHandler } from "#root/bot/handlers/error.js"; import { errorHandler } from "#root/bot/handlers/error.js";
@@ -20,8 +18,8 @@ import { metaBlacklist } from "./features/metaBlacklist.js";
import { botInfoCommand } from "./features/botInfoCommand.js"; import { botInfoCommand } from "./features/botInfoCommand.js";
import { getGroupIDCommand } from "./features/getGroupIDCommand.js"; import { getGroupIDCommand } from "./features/getGroupIDCommand.js";
import { helpCommand } from "./features/helpCommand.js"; import { helpCommand } from "./features/helpCommand.js";
import { isLCMGroup } from "./features/isLCMGroup.js";
import { embedCheck } from "./features/embedCheck.js"; import { embedCheck } from "./features/embedCheck.js";
import { isWKCGroup } from "./features/isLCMGroup.js";
interface Dependencies { interface Dependencies {
config: Config; config: Config;
@@ -70,13 +68,11 @@ export function createBot(
// Handlers // Handlers
protectedBot.use(welcomeFeature); protectedBot.use(welcomeFeature);
// protectedBot.use(adminFeature);
if (isMultipleLocales) protectedBot.use(languageFeature);
// Commands // Commands
protectedBot.use(botInfoCommand); protectedBot.use(botInfoCommand);
protectedBot.use(getGroupIDCommand); protectedBot.use(getGroupIDCommand);
protectedBot.use(isLCMGroup); protectedBot.use(isWKCGroup);
protectedBot.use(helpCommand); protectedBot.use(helpCommand);
// Blacklist Feature // Blacklist Feature