2021年1月25日星期一

i want to create a file with the person's name, how can i get no errors?

i can't get it, it says "Extension 'cogs.money' raised an error: IndentationError: unindent does not match any outer indentation level (money.py, line 26)" @commands.command() async def money(self, ctx, member): #how do i get the people who message, name

        open(member, '.txt', 'a').close()          if os.stat(member, '.txt').st_size == 0:            moneyfile=open(member, '.txt', 'w')            moneyfile.write('40')            moneyfile.close()        else:          readfile=open(member, '.txt', 'r').read()          points=readfile          int(points)          await ctx.send(points)  
https://stackoverflow.com/questions/65894560/i-want-to-create-a-file-with-the-persons-name-how-can-i-get-no-errors January 26, 2021 at 09:07AM

没有评论:

发表评论