Use correct directory to read log files from

This commit is contained in:
Michael De Roover 2022-01-02 04:47:29 +01:00
parent 4000af3d58
commit 19b8e136dc
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -43,7 +43,7 @@ async def log(event):
if len(arr) == 1:
import os
rpl = "Available log files:\n"
rpl += os.popen("ls logs").read()
rpl += os.popen("ls /var/telelog/logs").read()
await event.edit(rpl)
else:
chat = f'/var/telelog/logs/{arr[1]}'