Improve bot logging, flush output
This commit is contained in:
parent
78e56497bf
commit
0d8c16d2f5
2 changed files with 3 additions and 3 deletions
|
|
@ -55,11 +55,11 @@ class MonopBot:
|
|||
|
||||
def on_connect(self, connection, event):
|
||||
channel = self.config["channel"]
|
||||
print(f"Connected. Joining {channel}")
|
||||
print(f"Connected to {self.config['server']}. Joining {channel}", flush=True)
|
||||
connection.join(channel)
|
||||
|
||||
def on_join(self, connection, event):
|
||||
print(f"Joined {event.target}")
|
||||
print(f"Joined {event.target}", flush=True)
|
||||
|
||||
def on_pubmsg(self, connection, event):
|
||||
"""Handle public messages in channel."""
|
||||
|
|
|
|||
|
|
@ -674,5 +674,5 @@
|
|||
}
|
||||
],
|
||||
"log": [],
|
||||
"lastUpdated": "2026-02-20T21:05:15.895061+00:00"
|
||||
"lastUpdated": "2026-02-20T21:07:22.805824+00:00"
|
||||
}
|
||||
Loading…
Reference in a new issue