Simplify log format
This commit is contained in:
4
log.py
4
log.py
@@ -19,11 +19,11 @@ async def log(event):
|
|||||||
await event.respond(rpl)
|
await event.respond(rpl)
|
||||||
await client(functions.contacts.BlockRequest(chat))
|
await client(functions.contacts.BlockRequest(chat))
|
||||||
f = open(str(event.chat_id), "a")
|
f = open(str(event.chat_id), "a")
|
||||||
f.write(str(event.id) + ": " + str(event.chat_id) + " => " + str(myid) + "\n")
|
f.write("← ")
|
||||||
else:
|
else:
|
||||||
#Outgoing message
|
#Outgoing message
|
||||||
f = open(str(event.chat_id), "a")
|
f = open(str(event.chat_id), "a")
|
||||||
f.write(str(event.id) + ": " + str(event.sender_id) + " => " + str(event.chat_id) + "\n")
|
f.write("→ ")
|
||||||
f.write(event.raw_text + "\n")
|
f.write(event.raw_text + "\n")
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user