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

Method set

outdated/gemini/gemini.ts:90–101  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

88 }
89
90 static set(key: string, value: string): void {
91 this.init();
92 try {
93 const stmt = this.db.prepare(`
94 INSERT OR REPLACE INTO config (key, value, updated_at)
95 VALUES (?, ?, CURRENT_TIMESTAMP)
96 `);
97 stmt.run(key, value);
98 } catch (error) {
99 console.error("保存配置失败:", error);
100 }
101 }
102
103 static getAll(): { [key: string]: string } {
104 this.init();

Callers 9

getAccessTokenMethod · 0.45
callGeminiChatFunction · 0.45
handleContextClearFunction · 0.45
handleTelegraphFunction · 0.45
handleCollapseFunction · 0.45
handlePromptFunction · 0.45
handleModelFunction · 0.45
handleTTSVoiceFunction · 0.45
handleGeminiRequestFunction · 0.45

Calls 3

initMethod · 0.95
runMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected