From 831e37323c290682ac1888a44a6c0dc8df5e2aa6 Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 15 Apr 2023 09:29:24 -0400 Subject: [PATCH] forgot to save the file --- transcriblebot.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/transcriblebot.py b/transcriblebot.py index e69de29..11680e4 100644 --- a/transcriblebot.py +++ b/transcriblebot.py @@ -0,0 +1,15 @@ +import disnake +from disnake.ext import commands +from dotenv import load_dotenv +import os + +load_dotenv() +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") + +bot.run(os.getenv("TOKEN")) \ No newline at end of file