Creating a json in my server with a few user details


#1

Hello,

I have built a discord bot in python that procedurally generates images for tabletop roleplaying games. I would like my patrons to, according to their pledge levels, have access to special commands avaliable to them in any discord servers that host my bot.

I was wondering what the best way of checking for that was. I imagine if the bot was only in my server I could check for their role, but that wouldn’t work in other servers. So perhaps creating a json file that my bot could access to that gets updated with new pledges (or every hour, I don’t know if it can get automatically updated if a user adds their discord info to their profile) and compare the discord user executing the command to the list of patrons in the json… but I honestly have no idea how to do that.

Any help with that method or something else that could work would be greatly appreciated!