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

Method init

convert/convert.ts:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 try {
38 this.db = new Database(GEMINI_CONFIG_DB_PATH);
39 this.db.exec(`CREATE TABLE IF NOT EXISTS config (key TEXT PRIMARY KEY, value TEXT NOT NULL)`);
40 this.initialized = true;
41 } catch (error) {
42 console.error("[convert] Failed to initialize Gemini config DB:", error);
43 }
44 }
45
46 static get(key: string): string {
47 this.init();
48 if (!this.db) {
49 console.error("[convert] DB not initialized, cannot get config.");
50 return "";
51 }

Callers 2

getMethod · 0.95
setMethod · 0.95

Calls 2

execMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected