Discord Temp Voice Bot

Automated Temporary Voice Channel & Control Panel Bot

Project Overview

A production-ready Discord bot that creates and manages temporary voice channels with comprehensive control features. Built for Discord servers to provide users with on-demand private voice rooms that auto-delete when empty.

Key Features

Voice Channel Management

  • Automatic VC Creation: Users join a HUB channel to instantly create their own temporary voice channel
  • Auto-Deletion: Channels automatically delete when empty or after owner leaves with timeout
  • Ownership Transfer: Automatic ownership transfer to next user when owner leaves (3-minute grace period)
  • Custom Naming: Configurable channel name prefix (e.g., "T2 ✘")

12 Control Buttons

  • Lock/Unlock - Control who can connect to the channel
  • Hide/Show - Control channel visibility
  • Mute/Unmute - Control speaking permissions for new joiners
  • Limit - Set user capacity limits
  • Ban - Ban specific users or roles from the channel
  • Kick - Kick users from the channel
  • Transfer - Manually transfer ownership to another user
  • Delete - Schedule channel deletion with cancel option
  • Name Change - Rename the voice channel
  • Whitelist - Allow specific users/roles access
  • Region - Change voice server region for better latency
  • Join Request - Request to join another temp VC via voting system

Slash Commands

  • /vc-fix - Admin command to repair/clear all temp VCs
  • /vc-hubmsg - Create HUB informational message
  • /vc-control - Open control panel for your VC
  • /vc-join - Request to join another temp VC

Permission System

  • Ban/Unban - Block or allow specific users and roles
  • Whitelist Management - Add/remove users from whitelist
  • Role-based Access - Default role configuration for permissions
  • Owner-only Controls - Only channel owners can manage settings

Multi-language Support

  • Localization system via lang.json
  • English language support with extensible structure
  • Command descriptions with localization support

Database & Persistence

  • LevelDB - Persistent storage for channel data
  • Stores channel ownership, bans, whitelists, and settings
  • Automatic data retrieval on bot restart

User Experience

  • Rich Embeds - Beautiful formatted messages with custom styling
  • Animated Emojis - Custom Discord emojis for UI elements
  • Scheduled Deletion Notifications - Countdown timers before deletion
  • Vote-based Join System - Democratic channel joining via polls

Administration

  • Multi-server Support - Configurable for multiple Discord servers
  • Admin Commands - Repair and cleanup tools
  • Owner System - Bot owner configuration for elevated permissions
  • Custom Status - Configurable bot presence status

Technology Stack

Node.js v16+ Discord.js v14 @discordjs/rest v2.1.0 discord-api-types v0.37.61 Level v8.0.0 Railway

Configuration

  • Server-specific settings (HUB channels, categories, roles)
  • Customizable channel prefixes
  • Bot token and guild ID management
  • Slash command enable/disable toggle

Code Architecture

  • Modular Structure: Separate files for config, embeds, and main logic
  • Event-driven: Discord.js event handlers for voice state changes
  • Template System: Reusable embed templates for consistent UI
  • Timeout Management: Multiple timeout handlers for auto-deletion and ownership transfer

Permissions Required

  • Manage Channels
  • Move Members
  • Connect to voice channels
  • Send messages
  • Administrator (for admin commands)

Project Stats

  • Version: 1.1.1
  • Author: t2
  • License: MIT
  • Main File: tempVCs.js (1,562 lines)
  • Total Dependencies: 4 core packages