Browse Source

remove unnecessary prints and unbuffer example unit

master
Ben Harris 3 months ago
parent
commit
f9c16f0e42
  1. 2
      tracer.py
  2. 2
      tracer.service

2
tracer.py

@ -129,7 +129,6 @@ def think(line):
elif words[0] == "!botlist" or words[0] == "!!help":
return HELPTEXT
elif words[0][0:2] == "!!":
print(words)
res = generate(words[0][2:])
if res:
if len(words) >= 3:
@ -152,7 +151,6 @@ class Server(BaseServer):
await self.send(build("MODE", [self.nickname, "+B"]))
if line.command == "INVITE":
print(f"received invite to {line.params[1]}")
await self.send(build("JOIN", [line.params[1]]))
if (

2
tracer.service

@ -5,7 +5,7 @@ After=tracer.service
[Service]
Type=simple
WorkingDirectory=/home/ben/workspace/tracer
ExecStart=/usr/bin/python3 tracer.py
ExecStart=/usr/bin/python3 -u tracer.py
Restart=always
RestartSec=5
StartLimitInterval=60s

Loading…
Cancel
Save