I want my discord bot to send mp3 files that I have on my pc when I do a certain command. Let's say the command is -hello When I say -hello I want the bot to send an mp3 file on my pc with the name "hello"
How could I do this?
I want my discord bot to send mp3 files that I have on my pc when I do a certain command. Let's say the command is -hello When I say -hello I want the bot to send an mp3 file on my pc with the name "hello"
How could I do this?
Check out this answer here: Discord.py Bot sending file to Discord Channel If you want to attach the file with your message, then do this with
await ctx.send(file=discord.File(r'c:\location\of\the_file_to\send.mp3'))