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

Method handleApiKeyCommand

convert/convert.ts:423–439  ·  view source on GitHub ↗
(msg: Api.Message, apiKey: string)

Source from the content-addressed store, hash-verified

421 ? `🔑 当前 API Key: <code>...${currentKey.slice(-4)}</code>`
422 : "❌ 未设置 API Key。";
423 await msg.edit({ text, parseMode: "html" });
424 return;
425 }
426 if (apiKey.toLowerCase() === "clear") {
427 GeminiConfigManager.set(GEMINI_API_KEY, "");
428 await msg.edit({ text: "✅ API Key 已清除。" });
429 return;
430 }
431 GeminiConfigManager.set(GEMINI_API_KEY, apiKey);
432 await msg.edit({ text: "✅ API Key 已保存。" });
433 }
434}
435
436export default new ConvertPlugin();

Callers 1

ConvertPluginClass · 0.95

Calls 3

getMethod · 0.45
editMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected