feat(queue): add queue modes and discord gating

This commit is contained in:
Peter Steinberger
2025-12-26 13:35:44 +01:00
parent e9f1851c5d
commit 8dda07a1e9
16 changed files with 378 additions and 12 deletions

View File

@@ -122,3 +122,12 @@ export function getTotalQueueSize() {
}
return total;
}
export function clearCommandLane(lane = "main") {
const cleaned = lane.trim() || "main";
const state = lanes.get(cleaned);
if (!state) return 0;
const removed = state.queue.length;
state.queue.length = 0;
return removed;
}