mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
[Audio] Use more of the newer Managed/Unmanaged terminology (#5952)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -36,7 +36,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
async def command_llset(self, ctx: commands.Context):
|
||||
"""`Dangerous commands` Manage Lavalink node configuration settings.
|
||||
|
||||
This command block holds all commands to manage an unmanaged (external) or managed Lavalink node.
|
||||
This command block holds all commands to configure an unmanaged (user maintained) or managed (bot maintained) Lavalink node.
|
||||
|
||||
You should not mess with any command in here unless you have a valid reason to,
|
||||
i.e. been told by someone in the Red-Discord Bot support server to do so.
|
||||
@@ -152,11 +152,11 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
),
|
||||
)
|
||||
|
||||
@command_llset.command(name="external", aliases=["unmanaged"])
|
||||
async def command_llset_external(self, ctx: commands.Context):
|
||||
"""Toggle using external Lavalink nodes - requires an existing external Lavalink node for Audio to work, if enabled.
|
||||
@command_llset.command(name="unmanaged", aliases=["external"])
|
||||
async def command_llset_unmanaged(self, ctx: commands.Context):
|
||||
"""Toggle using external (unmanaged) Lavalink nodes - requires an existing Lavalink node for Audio to work, if enabled.
|
||||
|
||||
This command disables the managed Lavalink server, if you do not have an external Lavalink node you will be unable to use Audio while this is enabled.
|
||||
This command disables the managed Lavalink server. If you do not have another Lavalink node set up, you will be unable to use Audio while this is enabled.
|
||||
"""
|
||||
external = await self.config.use_external_lavalink()
|
||||
await self.config.use_external_lavalink.set(not external)
|
||||
@@ -164,7 +164,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
if external:
|
||||
embed = discord.Embed(
|
||||
title=_("Setting Changed"),
|
||||
description=_("External Lavalink server: {true_or_false}.").format(
|
||||
description=_("Unmanaged Lavalink server: {true_or_false}.").format(
|
||||
true_or_false=inline(_("Enabled") if not external else _("Disabled"))
|
||||
),
|
||||
)
|
||||
@@ -173,7 +173,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
await self.send_embed_msg(
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_("External Lavalink server: {true_or_false}.").format(
|
||||
description=_("Unmanaged Lavalink server: {true_or_false}.").format(
|
||||
true_or_false=inline(_("Enabled") if not external else _("Disabled"))
|
||||
),
|
||||
)
|
||||
@@ -196,14 +196,14 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
):
|
||||
"""Set the Lavalink node host.
|
||||
|
||||
This command sets the connection host which Audio will use to connect to an external Lavalink node.
|
||||
This command sets the connection host which Audio will use to connect to an unmanaged Lavalink node.
|
||||
"""
|
||||
await self.config.host.set(host)
|
||||
await self.send_embed_msg(
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_(
|
||||
"External Lavalink node host set to {host}. "
|
||||
"Unmanaged Lavalink node host set to {host}. "
|
||||
"Run `{p}{cmd}` for it to take effect."
|
||||
).format(
|
||||
host=inline(host), p=ctx.prefix, cmd=self.command_audioset_restart.qualified_name
|
||||
@@ -217,7 +217,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
):
|
||||
"""Set the Lavalink node password.
|
||||
|
||||
This command sets the connection password which Audio will use to connect to an external Lavalink node.
|
||||
This command sets the connection password which Audio will use to connect to an unmanaged Lavalink node.
|
||||
"""
|
||||
|
||||
await self.config.password.set(str(password))
|
||||
@@ -225,7 +225,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_(
|
||||
"External Lavalink node password set to {password}. "
|
||||
"Unmanaged Lavalink node password set to {password}. "
|
||||
"Run `{p}{cmd}` for it to take effect."
|
||||
).format(
|
||||
password=inline(password),
|
||||
@@ -241,7 +241,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
):
|
||||
"""Set the Lavalink node port.
|
||||
|
||||
This command sets the connection port which Audio will use to connect to an external Lavalink node.
|
||||
This command sets the connection port which Audio will use to connect to an unmanaged Lavalink node.
|
||||
"""
|
||||
if port < 0 or port > 65535:
|
||||
return await self.send_embed_msg(
|
||||
@@ -254,7 +254,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_(
|
||||
"External Lavalink node port set to {port}. "
|
||||
"Unmanaged Lavalink node port set to {port}. "
|
||||
"Run `{p}{cmd}` for it to take effect."
|
||||
).format(
|
||||
port=inline(str(port)),
|
||||
@@ -268,7 +268,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
async def command_llset_secured(self, ctx: commands.Context):
|
||||
"""Set the Lavalink node connection to secured.
|
||||
|
||||
This toggle sets the connection type to secured or unsecured when connecting to an external Lavalink node.
|
||||
This toggle sets the connection type to secured or unsecured when connecting to an unmanaged Lavalink node.
|
||||
"""
|
||||
state = await self.config.secured_ws()
|
||||
await self.config.secured_ws.set(not state)
|
||||
@@ -278,7 +278,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_(
|
||||
"External Lavalink node will now connect using the secured {secured_protocol} protocol.\n\n"
|
||||
"Unmanaged Lavalink node will now connect using the secured {secured_protocol} protocol.\n\n"
|
||||
"Run `{p}{cmd}` for it to take effect."
|
||||
).format(
|
||||
p=ctx.prefix,
|
||||
@@ -291,7 +291,7 @@ class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
ctx,
|
||||
title=_("Setting Changed"),
|
||||
description=_(
|
||||
"External Lavalink node will no longer connect using the secured "
|
||||
"Unmanaged Lavalink node will no longer connect using the secured "
|
||||
"{secured_protocol} protocol and wil use {unsecured_protocol} instead .\n\n"
|
||||
"Run `{p}{cmd}` for it to take effect."
|
||||
).format(p=ctx.prefix, cmd=self.command_audioset_restart.qualified_name),
|
||||
|
||||
@@ -86,7 +86,7 @@ DANGEROUS_COMMANDS = {
|
||||
"usually you will never have to change this, "
|
||||
"before considering changing it please consult our support team."
|
||||
),
|
||||
"command_llset_external": _(
|
||||
"command_llset_unmanaged": _(
|
||||
"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."
|
||||
|
||||
Reference in New Issue
Block a user