rename file, add new function

This commit is contained in:
Lucid Kobold
2025-02-28 18:49:30 -05:00
parent 814df5ba35
commit 88f189c5e1

View File

@@ -15,7 +15,8 @@ import { hydrate } from "@grammyjs/hydrate";
import { hydrateReply, parseMode } from "@grammyjs/parse-mode"; import { hydrateReply, parseMode } from "@grammyjs/parse-mode";
import { sequentialize } from "@grammyjs/runner"; import { sequentialize } from "@grammyjs/runner";
import { MemorySessionStorage, Bot as TelegramBot } from "grammy"; import { MemorySessionStorage, Bot as TelegramBot } from "grammy";
import { blacklistDetection } from "./features/blacklistDelete.js"; import { twitterBlacklist } from "./features/twitterBlacklist.js";
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";
@@ -78,7 +79,8 @@ export function createBot(
protectedBot.use(helpCommand); protectedBot.use(helpCommand);
// Blacklist Feature // Blacklist Feature
protectedBot.use(blacklistDetection); protectedBot.use(twitterBlacklist);
protectedBot.use(metaBlacklist);
// must be the last handler // must be the last handler
protectedBot.use(unhandledFeature); protectedBot.use(unhandledFeature);