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

Method remove

sticker/sticker.ts:72–84  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

70 } catch (error) {
71 console.error(`[sticker] 设置配置失败 ${key}:`, error);
72 return false;
73 }
74 }
75
76 static async remove(key: string): Promise<boolean> {
77 await this.init();
78 if (!this.db) return false;
79
80 try {
81 delete this.db.data[key];
82 await this.db.write();
83 return true;
84 } catch (error) {
85 console.error(`[sticker] 删除配置失败 ${key}:`, error);
86 return false;
87 }

Callers 1

handleConfigurationMethod · 0.45

Calls 3

initMethod · 0.95
writeMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected