Stryker-SC/Discord-Bot-VCMaster-JavaScript-Revamped
0
1---2sdk: gradio3---4# VCMaster Discord Bot5 6A "Join to Create" temporary voice channel bot built with Discord.js and Mongoose. This bot automatically creates a private voice and text channel for users when they join a designated Hub channel. It provides interactive buttons and slash commands to manage these channels.7 8## ⚠️ Important: Privileged Intents Required9 10For this bot to function correctly, you **must** enable the following **Privileged Gateway Intents** in the [Discord Developer Portal](https://discord.com/developers/applications):11 121. **Server Members Intent** (`GuildMembers`): Required to move users into their newly created temporary channels and to kick users via the dashboard.132. **Presence Intent** (`GuildPresences`): Required to automatically detect the game a user is playing to name their voice channel.143. **Message Content Intent** (`MessageContent`): Highly recommended for full functionality (even though interactions use slash commands, some event handlers or features may rely on it).15 16Without these intents enabled, the bot will fail to start or crash during operation.17 18## Setup Instructions19 201. **Clone the repository** and install dependencies:21 ```bash22 npm install23 ```242. **Configure Environment Variables**:25 Create a `.env` file in the root directory (or use your host's secrets manager) and add:26 ```env27 DISCORD_TOKEN=your_bot_token_here28 CLIENT_ID=your_bot_client_id29 MONGO_URI=your_mongodb_connection_string30 ```31 *(Optional)* `GUILD_ID=your_server_id` to deploy slash commands instantly to a specific test server instead of globally.32 333. **Deploy Commands**:34 Run the deployment script to register slash commands:35 ```bash36 node deploy-commands.js37 ```38 394. **Start the Bot**:40 Run the one-click setup script (Windows) or start normally:41 ```bash42 npm start43 ```44 45## Admin Commands46 47- `/setup-voice <channel> [category]`: Sets the Hub channel. When a user joins this Hub channel, a new temporary channel is created. Optionally specify a category where the new channels will be placed.48 