MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getTxtFromMsg

Function getTxtFromMsg

manage_admin/manage_admin.ts:85–89  ·  view source on GitHub ↗
(msg: Api.Message | string, n: number)

Source from the content-addressed store, hash-verified

83class ManageAdminPlugin extends Plugin {
84
85 description: string = `\n管理管理员\n\n${help_text}`;
86 cmdHandlers: Record<
87 string,
88 (msg: Api.Message, trigger?: Api.Message) => Promise<void>
89 > = {
90 manage_admin: async (msg: Api.Message, trigger?: Api.Message) => {
91 const parts = msg.message.trim().split(/\s+/);
92 const sub = (parts[1] || "").toLowerCase();

Callers 1

ManageAdminPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected