feat: add idle timeout setting to auto-disconnect bot when channel is empty

This commit is contained in:
NeoPecos committed 2026-04-13 17:27:51 +08:00
1 parent d7107677c0
commit 7785cc972b
6 files changed
+120 -1

No files matched your search

Regular → Executable
+2
View File
@@ -13,6 +13,7 @@ export interface BotConfig {
adminGroups: number[];
autoReturnDelay: number;
autoPauseOnEmpty: boolean;
idleTimeoutMinutes: number;
}
export function getDefaultConfig(): BotConfig {
@@ -28,6 +29,7 @@ export function getDefaultConfig(): BotConfig {
adminGroups: [],
autoReturnDelay: 300,
autoPauseOnEmpty: true,
idleTimeoutMinutes: 0,
};
}