feat: wire channel mode runtime config and docs

This commit is contained in:
zhi
2026-04-02 04:48:20 +00:00
parent 8073c33f2c
commit d44204fabf
9 changed files with 60 additions and 20 deletions

View File

@@ -1,10 +1,7 @@
export type ChannelMode = "normal" | "multi-message";
import type { ChannelRuntimeMode, ChannelRuntimeState } from "../rules.js";
export type ChannelModesState = {
mode: ChannelMode;
shuffling: boolean;
lastShuffledAt?: number;
};
export type ChannelMode = ChannelRuntimeMode;
export type ChannelModesState = ChannelRuntimeState;
const channelStates = new Map<string, ChannelModesState>();
@@ -48,4 +45,4 @@ export function markLastShuffled(channelId: string): void {
const state = getChannelState(channelId);
state.lastShuffledAt = Date.now();
channelStates.set(channelId, state);
}
}