I added a log feature for my discord bot and after that all of the commands started not to work
this is the code that i added:
@client.event
async def on_message(message, ctx):
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
with open("logs.txt", "a") as text_file:
print(f"<{st}> <{message.author}> <{message.id}> {message.content}", file=text_file)