more changes

This commit is contained in:
insert-usernamehere 2023-04-15 09:42:37 -04:00
parent 831e37323c
commit 0ac6b222bb

View file

@ -9,7 +9,7 @@ bot = commands.Bot(command_prefix='.')
@bot.message_command(name="Transcrible") @bot.message_command(name="Transcrible")
async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message): async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message):
# Reversing the message and sending it back. # Reversing the message and sending it back.
await inter.message.attachments[0].save("audio.mp3") await message.attachments[0].save("audio.mp3")
await inter.response.send_message("audio saved") await inter.response.send_message("audio saved", file=disnake.File("audio.mp3"))
bot.run(os.getenv("TOKEN")) bot.run(os.getenv("TOKEN"))