forgot to save the file
This commit is contained in:
parent
153bb2e157
commit
831e37323c
1 changed files with 15 additions and 0 deletions
|
@ -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"))
|
Loading…
Reference in a new issue