I want the user to start with 40 points, but if he already started just send how many points he has.
The error that im currently geting is: message is a required argument that is missing. But i dont know what is missing.
async def money(self, ctx, message): user = message.author read = open(user, 'a').close() if os.stat(user).st_size == 0: moneyfile=open(user, 'w') moneyfile.write('40') moneyfile.close() else: readfile = open(user, 'r').read() points=readfile int(points) await ctx.send(points)
The error reads itself, you are doing the command but not entering a message param. To fix this, delete the message param and set user in the 2nd line to ctx.author.
2.1m questions
2.1m answers
60 comments
57.0k users