title: Discord Python Rewrite - Account Generator
body: <p>I Want to make a discord account generator using python and json, i can make it gen but i cant make it delete the account after genned, please help.</p>
  <p>The code:</p>
  <pre><code>@client.command()
  async def gentest(ctx):
      
      genembed = discord.Embed(
          title=&quot;Minecraft NFA&quot;,
          colour=discord.Color.green()
          )
  
      with open('alts.json', 'r') as f:
          alts = json.load(f)
  
      genembed.add_field(name=&quot;Account:&quot;, value=random.choice(alts), inline=False)
  
      with open('alts.json', 'w') as f:
          alts = alts.pop(alts)
  
      await ctx.author.send(embed=genembed)
      await ctx.send(f&quot;{ctx.author.mention} Please check your DMs!&quot;)
  </code></pre>
  <p>but when i tried to gen (with the alts.pop) it sends this error:</p>
  <blockquote>
  <p>Command raised an exception: TypeError: 'list' object cannot be
  interpreted as an integer</p>
  </blockquote>