From 5dc414ed9ef01c0cdc6f9f70f6a25e1aa269e058 Mon Sep 17 00:00:00 2001 From: insert username here Date: Wed, 21 Jun 2023 16:44:34 -0400 Subject: [PATCH] Rename function --- transcribebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transcribebot.py b/transcribebot.py index 00d940f..b0ae0c0 100644 --- a/transcribebot.py +++ b/transcribebot.py @@ -52,7 +52,7 @@ async def transcribesphinx(inter: disnake.ApplicationCommandInteraction, message await inter.edit_original_message(content=f'an error appears to have occoured please report it to the developer: {e}') @bot.message_command(name="Transcribe Using DeepSpeech") -async def transcribesphinx(inter: disnake.ApplicationCommandInteraction, message: disnake.Message): +async def transcribedeepspeech(inter: disnake.ApplicationCommandInteraction, message: disnake.Message): try: await inter.response.defer(ephemeral='true') await message.attachments[0].save("audio.ogg") @@ -76,4 +76,4 @@ async def transcribesphinx(inter: disnake.ApplicationCommandInteraction, message except Exception as e: await inter.edit_original_message(content=f'an error appears to have occoured please report it to the developer: {e}') -bot.run(os.getenv("TOKEN")) \ No newline at end of file +bot.run(os.getenv("TOKEN"))