Home > Software design >  Discord.py How can I give everyone money in my json file/database trough a command?
Discord.py How can I give everyone money in my json file/database trough a command?

Time:11-15

Question in the title! I use the code from swastik on yt! i thought maybe something like that:

everyone = ---
everyone[str(everyone.id)]["wallet"]  = 100  

CodePudding user response:

with open("nameofjson","r") as f:
   everyone = json.load(f)
for i in everyone:
   everyone[str(i)]["wallet"]  = 100
  • Related