Remove llsetup alias for llset (#5953)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
aikaterna
2023-01-14 06:33:03 -08:00
committed by GitHub
parent eda1288bea
commit a13870b45f
5 changed files with 204 additions and 204 deletions

View File

@@ -75,92 +75,92 @@ HUMANIZED_PERM = {
}
DANGEROUS_COMMANDS = {
"command_llsetup_java": _(
"command_llset_java": _(
"This command will change the executable path of Java, "
"this is useful if you have multiple installations of Java and the default one is causing issues. "
"Please don't change this unless you are certain that the Java version you are specifying is supported by Red. "
"The default and supported version is currently Java 11."
),
"command_llsetup_heapsize": _(
"command_llset_heapsize": _(
"This command will change the maximum RAM allocation for the managed Lavalink node, "
"usually you will never have to change this, "
"before considering changing it please consult our support team."
),
"command_llsetup_external": _(
"command_llset_external": _(
"This command will disable the managed Lavalink node, "
"if you toggle this command you must specify an external Lavalink node to connect to, "
"if you do not do so Audio will stop working."
),
"command_llsetup_host": _(
"command_llset_host": _(
"This command is used to specify the IP which will be used by Red to connect to an external Lavalink node. "
),
"command_llsetup_password": _(
"command_llset_password": _(
"This command is used to specify the authentication password used by Red to connect to an "
"external Lavalink node."
),
"command_llsetup_secured": _(
"command_llset_secured": _(
"This command is used toggle between secured and unsecured connections to an external Lavalink node."
),
"command_llsetup_wsport": _(
"command_llset_wsport": _(
"This command is used to specify the connection port used by Red to connect to an external Lavalink node."
),
"command_llsetup_config_host": _(
"command_llset_config_host": _(
"This command specifies which network interface and IP the managed Lavalink node will bind to, "
"by default this is 'localhost', "
"only change this if you want the managed Lavalink node to bind to a specific IP/interface."
),
"command_llsetup_config_token": _(
"command_llset_config_token": _(
"This command changes the authentication password required to connect to this managed node."
"The default value is 'youshallnotpass'."
),
"command_llsetup_config_port": _(
"command_llset_config_port": _(
"This command changes the connection port used to connect to this managed node, "
"only change this if the default port '2333' is causing conflicts with existing applications."
),
"command_llsetup_config_source_http": _(
"command_llset_config_source_http": _(
"This command toggles the support of direct url streams like Icecast or Shoutcast streams. "
"An example is <http://ice1.somafm.com/gsclassic-128-mp3>; "
"disabling this will make the bot unable to play any direct url steam content."
),
"command_llsetup_config_source_bandcamp": _(
"command_llset_config_source_bandcamp": _(
"This command toggles the support of Bandcamp audio playback. "
"An example is <http://deaddiskdrive.bandcamp.com/track/crystal-glass>; "
"disabling this will make the bot unable to play any Bandcamp content",
),
"command_llsetup_config_source_local": _(
"command_llset_config_source_local": _(
"This command toggles the support of local track audio playback. "
"An example is `/mnt/data/my_super_funky_track.mp3`; "
"disabling this will make the bot unable to play any local track content."
),
"command_llsetup_config_source_soundcloud": _(
"command_llset_config_source_soundcloud": _(
"This command toggles the support of SoundCloud playback. "
"An example is <https://soundcloud.com/user-103858850/tilla>; "
"disabling this will make the bot unable to play any SoundCloud content."
),
"command_llsetup_config_source_youtube": _(
"command_llset_config_source_youtube": _(
"This command toggles the support of YouTube playback (Spotify depends on YouTube). "
"Disabling this will make the bot unable to play any YouTube content: "
"this includes Spotify."
),
"command_llsetup_config_source_twitch": _(
"command_llset_config_source_twitch": _(
"This command toggles the support of Twitch playback. "
"An example of this is <https://twitch.tv/monstercat>; "
"disabling this will make the bot unable to play any Twitch content."
),
"command_llsetup_config_source_vimeo": _(
"command_llset_config_source_vimeo": _(
"This command toggles the support of Vimeo playback. "
"An example of this is <https://vimeo.com/157743578>; "
"disabling this will make the bot unable to play any Vimeo content."
),
"command_llsetup_config_server_framebuffer": _(
"command_llset_config_server_framebuffer": _(
"This setting controls the managed node's framebuffer, "
"do not change this unless instructed."
),
"command_llsetup_config_server_buffer": _(
"command_llset_config_server_buffer": _(
"This setting controls the managed node's JDA-NAS buffer, "
"do not change this unless instructed."
),
"command_llsetup_reset": _("This command will reset every setting changed by `[p]llset`."),
"command_llset_reset": _("This command will reset every setting changed by `[p]llset`."),
}
_ = _T
@@ -172,7 +172,7 @@ class DpyEvents(MixinMeta, metaclass=CompositeMetaClass):
# check for unsupported arch
# Check on this needs refactoring at a later date
# so that we have a better way to handle the tasks
if self.command_llsetup in [ctx.command, ctx.command.root_parent]:
if self.command_llset in [ctx.command, ctx.command.root_parent]:
pass
elif self.lavalink_connect_task and self.lavalink_connect_task.cancelled():