From ed58abe6535ead366147fc569d81950ac91ff15d Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Tue, 17 Jan 2023 14:07:59 -0800 Subject: [PATCH] add 300 char limit for tiktok --- app/cogs/cheeky_functions.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index abaea7b2..602684ed 100755 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -157,8 +157,13 @@ class Cheeky(commands.Cog): name="tiktok", description="Returns a god awful tts with the tiktok voice", ) - @option(name="input", required=True, description="The text you want as TTS") - async def tiktok(self, ctx: commands.Context, input): + @option( + name="input", + required=True, + description="The text you want as TTS", + max_length=300, + ) + async def tiktok(self, ctx: commands.Context, input: str): import tempfile import base64