Personal Telegram developer console for GitHub

feat(hardening): attach kill switch per bot instance

davoodmehraban89 committed Oct 5, 2026 at 13:25 UTC c33830e91bb8a47ff6c996d6bc15d31075e5db8a
1 file changed +11
src/kill-switch-bot.js new
+11
@@ -0,0 +1,11 @@
1 +import { GuidedNexaDevBot } from './guide-bot.js';
2 +import { DurableKillSwitchStoreClient } from './core/kill-switch-store.js';
3 +import { KillSwitch } from './core/kill-switch.js';
4 +
5 +export class KillSwitchGuidedNexaDevBot extends GuidedNexaDevBot {
6 + constructor(env = {}) {
7 + super(env);
8 + this.killSwitch = new KillSwitch({ store: new DurableKillSwitchStoreClient({ namespace: env.KILL_SWITCH_STORE }) });
9 + this.router.killSwitch = this.killSwitch;
10 + }
11 +}