Skip to content

Source Code of VoiceMaster Discord Bot | Code by Moonwalker | Easy to SetUp with Docker

License

Notifications You must be signed in to change notification settings

AWildVictor/VoiceMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/VoiceMaster SRC Code

Coded by Moonwalker

VoiceMaster is a discord bot which allows you to automatically create temporary text and voice channels, when required

Features

  • Temporary text channels for voice channels
  • Temporary voice channels on demand
  • Per-category configuration
  • Easy installation using docker

Installation

  1. Clone the GitHub repository using git clone <url>
  2. Edit the configuration according to Configuration
  3. Build the docker image using docker build -t tmpchannels .
  4. Run the image using docker run -d --name "<container name>" tmpchannels
  5. Check if the bot is running using docker ps

Repeat last two steps whenever the configuration is changed.

Configuration

Key Value
general.token A valid discord bot token. You can retrieve it from the discord developer console
category.categoryId The id of the category you want to configure the bot for. See Retrieving Ids for further information
category.autoText Whether or not text channels should be generated in this category
category.autoTextPrefix A prefix for the generated text channels
categpry.autoTextPosition Whether text channels should be generated at the top or the bottom of a category
category.autoVoice Whether or not voice channels should be generated in this category
category.autoVoicePrefix A prefix for the generated voice channels
category.autoVoiceSlots The amount of slots a generated voice channel should have. Omit for unlimited
category.autoVoiceChannelLimit The limit for generated voice channels in this category
category.autoVoiceBitrate The bitrate (in bits) a generated voice channel should have. Omit for default bitrate
category.autoVoicePermissions The permissions a generated voice channel should have. See Voice Permissions for details. Omit for default permissions

Voice permissions

Voice permissions can either be set to "sync" to use the categories default permissions or to an array containing the permissions.

The array can contain one or many of the following:

  • { id = "<role id>", allow = "<permission>" }
  • { id = "<role id>", deny = "<permission>" }

See discord developer portal for a list of permissions

Retrieving Ids

  • Enable Developer mode in Discord Settings -> Appearence
  • Right-click a category and press Copy ID to copy a channel id
  • Right-click a role in role settings and press Copy ID to copy a role id

###Coded by Moonwalker | User-friendly source code of the popular VoiceMaster Discord Bot