feat(voice): add temporary voice channel manager

Joining the trigger channel must feel instant and never leave orphan channels behind, so the ownership is stored in SQLite, empty channels are deleted after a short grace period and a startup sweep cleans up whatever a restart left behind.
This commit is contained in:
BlackAngelTV committed 2026-09-15 14:51:17 +02:00
1 parent ef1bedbc65
commit 5191942d5a
12 files changed
+1277 -1

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import { ActivityType, Events } from 'discord.js';
import { createLogger } from '../core/logger.js';
import { startPollScheduler } from '../services/polls/poll-service.js';
import { sweepVoiceChannels } from '../services/voice/voice-service.js';
const log = createLogger('discord');
@@ -10,6 +11,7 @@ export const once = true;
export async function execute(client) {
client.user.setActivity('FWS Arch', { type: ActivityType.Watching });
startPollScheduler(client);
await sweepVoiceChannels(client);
log.info(`Connected as ${client.user.tag}`, {
guilds: client.guilds.cache.size,
commands: client.commands.size,