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

Method toggleGroup

autorepeat/autorepeat.ts:270–278  ·  view source on GitHub ↗
(groupId: number, enable: boolean)

Source from the content-addressed store, hash-verified

268 this.enabledGroups.delete(groupId);
269 }
270 // 保存设置
271 await this.cache.set("autorepeat_settings", Array.from(this.enabledGroups));
272 }
273
274 static async enableAll(groupIds: number[]) {
275 for (const gid of groupIds) {
276 this.enabledGroups.add(gid);
277 }
278 await this.cache.set("autorepeat_settings", Array.from(this.enabledGroups));
279 }
280
281 static async disableAll() {

Callers 1

Calls 3

addMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected