From acaa5b8fb9ecf6bfd23d4b90792491ca257704b2 Mon Sep 17 00:00:00 2001 From: bobloy Date: Fri, 24 Jul 2020 13:33:20 -0400 Subject: [PATCH] Positional arguments changed (#105) --- tts/tts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tts/tts.py b/tts/tts.py index ef2a223..e00bfa7 100644 --- a/tts/tts.py +++ b/tts/tts.py @@ -12,7 +12,8 @@ class TTS(Cog): Send Text-to-Speech messages """ - def __init__(self, bot: Red): + def __init__(self, bot: Red, *args, **kwargs): + super().__init__(*args, **kwargs) self.bot = bot self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) @@ -28,7 +29,7 @@ class TTS(Cog): Send Text to speech messages as an mp3 """ mp3_fp = io.BytesIO() - tts = gTTS(text, "en") + tts = gTTS(text, lang="en") tts.write_to_fp(mp3_fp) mp3_fp.seek(0) await ctx.send(file=discord.File(mp3_fp, "text.mp3"))