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

Method cleanup

shift/shift.ts:1245–1257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1243 lowdb = null;
1244 }
1245
1246 description: string = `智能转发助手 - 自动转发消息到指定目标\n\n${help_text}`;
1247 cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = {
1248 shift: async (msg) => {
1249 const client = await getGlobalClient();
1250 if (!client) {
1251 await msg.edit({
1252 text: "❌ <b>客户端未初始化</b>",
1253 parseMode: "html",
1254 });
1255 return;
1256 }
1257
1258 // 标准参数解析模式
1259 const lines = msg.message?.trim()?.split(/\r?\n/g) || [];
1260 const parts = lines?.[0]?.split(/\s+/) || [];

Callers

nothing calls this directly

Calls 4

cleanupGroupBuffersFunction · 0.85
clearMethod · 0.80
writeMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected