Decicus / discord-server-change

A bot that changes Discord voice server regions via commands
https://dsc.decicus.com/
MIT License
3 stars 0 forks source link
bot discord discord-bot server-regions

⚠ This project is no longer maintained ⚠

See this issue comment for more information: https://github.com/Decicus/discord-server-change/issues/11#issuecomment-1384293201

discord-server-change

This is a quick-and-dirty implementation of a bot that allows you to easily change voice server region with commands.
Only reason this exists is because the Europe servers always die, so I needed something that required the least amount of clicking.

The bot requires, at minimum, Manage Channels permission to change the voice channel regions.

Add to your server

You have two choices:

Setup

For self-hosting

Usage

If the configuration option Discord.allowEveryoneToMoveRegion is set to false (default), then the following server members can use the commands:

If the configuration option Discord.allowEveryoneToMoveRegion is set to true, then everyone can use the commands - regardless of server permissions.

For public servers, I recommend leaving Discord.allowEveryoneToMoveRegion to false.

Keep in mind that commands will only work inside a text channel on the server.
Sending the bot a direct message will not work.

The user running the command will also need to be connected to the voice channel they would like to change regions for.
In the future the bot will allow typing part of the channel name, as long as the "part" matches only one channel, but the initial 2.0.0 release will only work if you're connected to a voice channel.

Display current server region

!region

@Decicus, Current server region: US East

Change server

!v region-id

Use region command aliases instead

&use

@Decicus, Voice region updated to: us-east

List of region command aliases

&use => us-east
&usw => us-west
&usc => us-central
&uss => us-south
&eu => rotterdam
&sg => singapore
&br => brazil
&hk => hongkong
&ru => russia
&sy => sydney
&au => sydney
&in => india
&ja => japan
&jp => japan
&auto => "Automatic"

List available regions

!v

Example response

@Decicus, Available regions - 'Region name [Region ID]':
- US West [us-west]
- Brazil [brazil]
- Hong Kong [hongkong]
- India [india]
- Japan [japan]
- Rotterdam [rotterdam]
- Russia [russia]
- Singapore [singapore]
- South Africa [southafrica]
- Sydney [sydney]
- US Central [us-central]
- US East [us-east]
- US South [us-south]

Usage => !v region-id