mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix voice
This commit is contained in:
parent
ffb6f51fed
commit
7bcc441d38
1 changed files with 3 additions and 1 deletions
|
@ -831,11 +831,13 @@ class OtherCog(commands.Cog):
|
||||||
voice: discord.Option(
|
voice: discord.Option(
|
||||||
str,
|
str,
|
||||||
"The voice to use. Some may cause timeout.",
|
"The voice to use. Some may cause timeout.",
|
||||||
choices=VOICES,
|
autocomplete=discord.utils.basic_autocomplete(VOICES),
|
||||||
default="default"
|
default="default"
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
"""Converts text to MP3. 5 uses per 10 minutes."""
|
"""Converts text to MP3. 5 uses per 10 minutes."""
|
||||||
|
if voice not in VOICES:
|
||||||
|
return await ctx.respond("Invalid voice.")
|
||||||
speed = min(300, max(50, speed))
|
speed = min(300, max(50, speed))
|
||||||
_self = self
|
_self = self
|
||||||
_bot = self.bot
|
_bot = self.bot
|
||||||
|
|
Loading…
Reference in a new issue