I'm designing a Discord bot using discord.py and need to store user information in files. The issue I'm worried about is that if two commands are executed simultaneously, that the bot will attempt to access the same user's information file from two scripts at once. Is there a really simple way I can lock down file access? I've tried using Google but it hasn't really gotten me anywhere so I'm trying this.
Thanks in advance!