archive

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

commit 142de532c38d3a2905af0f3978739e19cef244e3
parent faf46ae99da357fdfe8893edb9d4c0cf3ba969b5
Author: acidvegas <acid.vegas@acid.vegas>
Date: Tue, 25 Jul 2023 14:59:51 -0400

Fixed again (acidvegas is a skid)

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

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

diff --git a/bots/tailbot.py b/bots/tailbot.py
@@ -67,8 +67,8 @@ class Bot():
 			async with aiofiles.open(FIFO_PATH) as fifo:
 				while True:
 					try:
-						for line in fifo:
-							await self.sendmsg(connection.channel, log_line)
+						for line in fifo.readlines():
+							await self.sendmsg(connection.channel, line.rstrip())
 							await asyncio.sleep(0.1)
 					except Exception as ex:
 						try: