From 044fc0d4bd0cdfe031357dde9e642b8b64414a47 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Tue, 5 Sep 2017 11:03:41 +0300 Subject: [PATCH] Make the debug interface nicer to use --- ircbot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ircbot.py b/ircbot.py index 1965327..375f0a8 100644 --- a/ircbot.py +++ b/ircbot.py @@ -122,7 +122,11 @@ if __name__ == '__main__': while True: cmd = input(': ') if cmd == '': - print(logging_channel.recv(blocking = False)) + while True: + data = logging_channel.recv(blocking = False) + if data == None: + break + print(data) elif cmd == 'q': control_channel.send('q')