Reloc is a simple Discord bot capable of moving and/or disconnecting users from voice channels.
Reloc can be configured using the following environment variables
BOT_TOKEN
(required) - The bot tokenCLIENT_ID
(required) - Client IDBASE_COMMAND
(optional) - Slash command, default toreloc
docker run --rm \
-e BOT_TOKEN=<your bot token> \
-e CLIENT_ID=<client id> \
ghcr.io/vittee/reloc:latest
name: reloc
services:
reloc:
image: ghcr.io/vittee/reloc:latest
environment:
- BOT_TOKEN=<your bot token>
- CLIENT_ID=<client id>
Simply clone or download this repository. Put the BOT_TOKEN
and CLIENT_ID
into a new file named .env
.env
BOT_TOKEN=<your bot token>
CLIENT_ID=<client id>
Make sure you have Bun installed and then execute this command.
bun start
Upon running, a URL is printed to the output. Simply follow that link.
Disconnect all users from a voice channel.
/reloc kick-all
channel1
(required) - A voice channelchannel2
...channel5
(optional) - Voice channelswith-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
reason
(optional) - The reason for the disconnection
Disconnect all users having the specified role from all voice channels.
/reloc kick-role
role1
(required) - The role for users to be disconnectedrole2
..role5
(optional) - The roles for users to be disconnectedwith-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
reason
(optional) - The reason for the disconnection
Move all users from a voice channel into a new channel.
/reloc move-all
from1
(required) - A voice channel from which to move usersto
(required) - A voice channel to which users will be moved intofrom2
...from5
(optional) - Voice channels from which to move userswith-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
Move all users having the specified role into a new channel.
/reloc move-role
role1
(required) - The role for users to be movedto
(required) - A voice channel to which users will be moved intorole2
..role5
(optional) - The roles for users to be movedwith-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
Disconnect all users from all voice channels.
Warning
This command is server-wide, it disconnects all users from all voice channels.
/reloc annihilate
with-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
reason
(optional) - The reason for the disconnection
Move all users into a new voice channel.
Warning
This command is server-wide, it moves all users from all voice channels.
/reloc marshal
to
(required) - A voice channel to which users will be moved intowith-bot
(optional) - Normally, Reloc will not disconnect bot users unless this value is set toTrue
Disconnect up to 10 users from all voice channels.
/reloc kick
user1
...user10
- List of users to be disconnected, at leastuser1
must be specifiedreason
(optional) - The reason for the disconnection
Move up to 10 users into a new voice channel
/reloc move
to
(required) - A voice channel to which users will be moved intouser1
...user10
- List of users to be disconnected, at leastuser1
must be specified
Kick yourself.
This is useful to leave a message when leaving from a voice channel.
Protect yourself from being kicked, the duration for the protection is random.