rustplusplus
rustplusplus copied to clipboard
Made move command
Added a !move command to move players between voice channels.
- Use
!move [users] [channel]to move specified users to a voice channel. - If no users are mentioned, it tries to find the Discord ID of the user who used the command from a credentials folder and move them (if they are in a voice channel).
- When searching users by partial names, priority is given to users currently connected to a voice channel.
- The last argument is always the target voice channel (by name or ID).
- Shows error messages if users or channels aren’t found or users are not in voice channels.
Examples:
-
!move aurum voice1— moves user "aurum" to "voice1" channel -
!move au voice1— searches for user starting with "au", prioritizing users in voice channels, then moves them to "voice1" -
!move voice1— moves the command user by looking up their Discord ID from the credentials folder