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

Method delete

outdated/gpt/gpt.ts:122–131  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

120
121 // 删除配置
122 static delete(key: string): void {
123 this.init();
124
125 try {
126 const stmt = this.db.prepare("DELETE FROM config WHERE key = ?");
127 stmt.run(key);
128 } catch (error) {
129 console.error("删除配置失败:", error);
130 }
131 }
132
133 // 关闭数据库连接
134 static close(): void {

Callers 1

handleGptRequestFunction · 0.45

Calls 3

initMethod · 0.95
runMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected