From 758849d4bd448d246fcb0ab6bf1ba5d627eb1921 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 25 Dec 2018 00:36:34 +0200 Subject: [PATCH] Update use of new command handling system --- echo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo.py b/echo.py index 51dfdf1..0f6bcd6 100644 --- a/echo.py +++ b/echo.py @@ -26,6 +26,6 @@ class EchoBot(Plugin): await evt.reply(f"Pong! (ping took {self.time_since(evt.timestamp)} to arrive)") @command.new("echo", help="Repeat a message") - @command.argument("message", required=True) + @command.argument("message", pass_raw=True) async def echo_handler(self, evt: MessageEvent, message: str) -> None: await evt.respond(message)