archive

- Random tools & helpful resources for IRC
git clone git://git.acid.vegas/archive.git
Log | Files | Refs | Archive

commit faf46ae99da357fdfe8893edb9d4c0cf3ba969b5
parent 76cad6e9e00a182fae645405b0dcd7dbf94c933d
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sun, 23 Jul 2023 02:06:45 -0400

frfrfr

Diffstat:
Mbots/tailbot.py | 3+--

1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bots/tailbot.py b/bots/tailbot.py
@@ -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: