feat: add /swarm stopall command

This commit is contained in:
Danieldd28 2026-02-11 02:28:54 +07:00
parent acac61ac2f
commit 3733b84f02

View file

@ -101,6 +101,9 @@ func (s *Service) HandleCommand(ctx context.Context, channel, chatID, input stri
if len(args) < 3 { return "ID required" } if len(args) < 3 { return "ID required" }
s.Orchestrator.StopSwarm(core.SwarmID(args[2])) s.Orchestrator.StopSwarm(core.SwarmID(args[2]))
return "Stopped." return "Stopped."
case "stopall":
s.Orchestrator.StopAll()
return "Stopping all active swarms..."
case "status": case "status":
if len(args) < 3 { return "ID required" } if len(args) < 3 { return "ID required" }
sid := core.SwarmID(args[2]) sid := core.SwarmID(args[2])