From 88f189c5e1d25b2cc4fe3e25a2dbdb08736ab4b3 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 28 Feb 2025 18:49:30 -0500 Subject: [PATCH] rename file, add new function --- src/bot/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bot/index.ts b/src/bot/index.ts index 386541e..58c5190 100644 --- a/src/bot/index.ts +++ b/src/bot/index.ts @@ -15,7 +15,8 @@ import { hydrate } from "@grammyjs/hydrate"; import { hydrateReply, parseMode } from "@grammyjs/parse-mode"; import { sequentialize } from "@grammyjs/runner"; 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 { getGroupIDCommand } from "./features/getGroupIDCommand.js"; import { helpCommand } from "./features/helpCommand.js"; @@ -78,7 +79,8 @@ export function createBot( protectedBot.use(helpCommand); // Blacklist Feature - protectedBot.use(blacklistDetection); + protectedBot.use(twitterBlacklist); + protectedBot.use(metaBlacklist); // must be the last handler protectedBot.use(unhandledFeature);