From 0ac6b222bbd6702b103d5d29a89323ee04aeb1fb Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 15 Apr 2023 09:42:37 -0400 Subject: [PATCH] more changes --- transcriblebot.py => transcribebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename transcriblebot.py => transcribebot.py (72%) diff --git a/transcriblebot.py b/transcribebot.py similarity index 72% rename from transcriblebot.py rename to transcribebot.py index 11680e4..303fa5e 100644 --- a/transcriblebot.py +++ b/transcribebot.py @@ -9,7 +9,7 @@ bot = commands.Bot(command_prefix='.') @bot.message_command(name="Transcrible") async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message): # Reversing the message and sending it back. - await inter.message.attachments[0].save("audio.mp3") - await inter.response.send_message("audio saved") + await message.attachments[0].save("audio.mp3") + await inter.response.send_message("audio saved", file=disnake.File("audio.mp3")) bot.run(os.getenv("TOKEN")) \ No newline at end of file