This commit is contained in:
Dionysus 2023-07-23 02:06:45 -04:00
parent 76cad6e9e0
commit faf46ae99d
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ class Bot():
async with aiofiles.open(FIFO_PATH) as fifo:
while True:
try:
log_line = FIFO_PATH.read_text()
for line in log_line.splitlines():
for line in fifo:
await self.sendmsg(connection.channel, log_line)
await asyncio.sleep(0.1)
except Exception as ex: