Updated function name
This commit is contained in:
@@ -2,8 +2,6 @@ import type { Context } from "#root/bot/context.js";
|
||||
import type { Config } from "#root/config.js";
|
||||
import type { Logger } from "#root/logger.js";
|
||||
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 { welcomeFeature } from "#root/bot/features/welcome.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 { getGroupIDCommand } from "./features/getGroupIDCommand.js";
|
||||
import { helpCommand } from "./features/helpCommand.js";
|
||||
import { isLCMGroup } from "./features/isLCMGroup.js";
|
||||
import { embedCheck } from "./features/embedCheck.js";
|
||||
import { isWKCGroup } from "./features/isLCMGroup.js";
|
||||
|
||||
interface Dependencies {
|
||||
config: Config;
|
||||
@@ -70,13 +68,11 @@ export function createBot(
|
||||
|
||||
// Handlers
|
||||
protectedBot.use(welcomeFeature);
|
||||
// protectedBot.use(adminFeature);
|
||||
if (isMultipleLocales) protectedBot.use(languageFeature);
|
||||
|
||||
// Commands
|
||||
protectedBot.use(botInfoCommand);
|
||||
protectedBot.use(getGroupIDCommand);
|
||||
protectedBot.use(isLCMGroup);
|
||||
protectedBot.use(isWKCGroup);
|
||||
protectedBot.use(helpCommand);
|
||||
|
||||
// Blacklist Feature
|
||||
|
||||
Reference in New Issue
Block a user