mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
[Audio] Fix architecture blacklisting (#2634)
This commit is contained in:
parent
476f441c9b
commit
bb6327d969
@ -100,7 +100,7 @@ class Audio(commands.Cog):
|
|||||||
async def cog_before_invoke(self, ctx):
|
async def cog_before_invoke(self, ctx):
|
||||||
if self.llsetup in [ctx.command, ctx.command.root_parent]:
|
if self.llsetup in [ctx.command, ctx.command.root_parent]:
|
||||||
pass
|
pass
|
||||||
elif self._connect_task.cancelled:
|
elif self._connect_task.cancelled():
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
"You have attempted to run Audio's Lavalink server on an unsupported"
|
"You have attempted to run Audio's Lavalink server on an unsupported"
|
||||||
" architecture. Only settings related commands will be available."
|
" architecture. Only settings related commands will be available."
|
||||||
@ -143,7 +143,7 @@ class Audio(commands.Cog):
|
|||||||
continue
|
continue
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
log.exception("Invalid machine architecture, cannot run Lavalink.")
|
log.exception("Invalid machine architecture, cannot run Lavalink.")
|
||||||
break
|
raise
|
||||||
else:
|
else:
|
||||||
host = await self.config.host()
|
host = await self.config.host()
|
||||||
password = await self.config.password()
|
password = await self.config.password()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user