minor changes

This commit is contained in:
insert-usernamehere 2023-04-15 10:35:54 -04:00
parent 77bdf82731
commit 9cf7985f35

View file

@ -13,7 +13,6 @@ bot = commands.Bot(command_prefix='.')
@bot.message_command(name="Transcrible")
async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message):
await inter.response.defer(ephemeral='true')
# Reversing the message and sending it back.
await message.attachments[0].save("audio.ogg")
mp3file = AudioSegment.from_ogg("audio.ogg")
mp3file.export("audio.wav", format="wav")