I want my bot to send random images from a locally created folder, for this I tried the following code:
@client.command()
async def hug(ctx):
await ctx.send(file=discord.File(random.choice(r "F:\Discordbot\hug")))
This one didn't really work though. Where is the error or how can I proceed?