I am making a discord bot that randomly chooses an image (images) which is in the same directory (Cats) as the python file(cats.py). This is what my code looks like right now:
Cats = os.path.join(os.path.dirname(__file__), "/images")@client.command()
async def cat(ctx, **kwargs):await ctx.send(choice(Cats))
I am not getting any errors. The bot goes online and when I ping it with ~cat it spits out random letters. I know my issue is with the async (possibly the kwargs) and await line, but cannot pin point exactly what is the issue. I am new to programming bots in Python so there might be a silly mistake that I am overlooking so any lead would be much appreciated!