more changes
This commit is contained in:
parent
831e37323c
commit
0ac6b222bb
1 changed files with 2 additions and 2 deletions
|
@ -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"))
|
Loading…
Reference in a new issue