Discord Python Rewrite - Account Generator
问题 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. The code: @client.command() async def gentest(ctx): genembed = discord.Embed( title="Minecraft NFA", colour=discord.Color.green() ) with open('alts.json', 'r') as f: alts = json.load(f) genembed.add_field(name="Account:", value=random.choice(alts), inline=False) with open('alts.json', 'w') as f: alts = alts.pop(alts) await ctx.author.send(embed