From b63e497e4f3b4bfa6133944f1f7241848b8cb1d6 Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Sun, 7 Jan 2024 22:20:00 +0100 Subject: [PATCH] #89 - Refactored CliClient to conform with plugins --- pyttman/clients/builtin/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyttman/clients/builtin/cli.py b/pyttman/clients/builtin/cli.py index 30827ce..314d339 100644 --- a/pyttman/clients/builtin/cli.py +++ b/pyttman/clients/builtin/cli.py @@ -21,9 +21,7 @@ def run_client(self): end="\n\n") while True: message = Message(input("[YOU]: "), client=self) - reply: Reply | ReplyStream = self.\ - message_router.get_reply(message) - + reply = self.reply_to_message(message) if isinstance(reply, ReplyStream): while reply.qsize(): print(f"[{pyttman.settings.APP_NAME.upper()}]: ",