()
| 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+/) || []; |
nothing calls this directly
no test coverage detected