split the message *after* printing it

This commit is contained in:
a-bad-dev 2026-02-20 22:46:08 -04:00 committed by GitHub
commit c2f78d79d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,8 +129,9 @@ class IRC2BASH:
with open("/tmp/.command", "r") as f: with open("/tmp/.command", "r") as f:
output = f.read() output = f.read()
output = output.strip().split("\n") output = output.strip()
print(output) print(output)
output = output.split("\n")
for line in output: for line in output:
IRC2BASH.send(f"PRIVMSG {IRC2BASH.chan} :{line}") IRC2BASH.send(f"PRIVMSG {IRC2BASH.chan} :{line}")
time.sleep(0.75) time.sleep(0.75)