mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 00:51:32 +00:00
split the message *after* printing it
This commit is contained in:
parent
586cf1ad90
commit
c2f78d79d8
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue