(groupId: number, enable: boolean)
| 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() { |
no test coverage detected