mirror of
git://git.acid.vegas/archive.git
synced 2024-11-24 17:16:39 +00:00
frfrfr
This commit is contained in:
parent
76cad6e9e0
commit
faf46ae99d
@ -67,8 +67,7 @@ class Bot():
|
|||||||
async with aiofiles.open(FIFO_PATH) as fifo:
|
async with aiofiles.open(FIFO_PATH) as fifo:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
log_line = FIFO_PATH.read_text()
|
for line in fifo:
|
||||||
for line in log_line.splitlines():
|
|
||||||
await self.sendmsg(connection.channel, log_line)
|
await self.sendmsg(connection.channel, log_line)
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
Loading…
Reference in New Issue
Block a user