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