admin-protections #69

Merged
werewolfkid merged 9 commits from admin-protections into main 2025-09-29 01:10:49 -04:00
2 changed files with 2 additions and 26 deletions
Showing only changes of commit dd06eb3f7c - Show all commits

View File

@@ -1,20 +0,0 @@
import { chatAction } from "@grammyjs/auto-chat-action";
import { Composer } from "grammy";
import type { Context } from "#root/bot/context.js";
// import { isAdmin } from "#root/bot/filters/is-admin.js";
import { setCommandsHandler } from "#root/bot/handlers/commands/setcommands.js";
import { logHandle } from "#root/bot/helpers/logging.js";
const composer = new Composer<Context>();
const feature = composer.chatType("private");
// .filter(ctx => isAdmin(ctx.config.botAdmins)(ctx));
feature.command(
"setcommands",
logHandle("command-setcommands"),
chatAction("typing"),
setCommandsHandler
);
export { composer as adminFeature };