diff --git a/maubot/handlers/command.py b/maubot/handlers/command.py index 27e6547..3f37bb9 100644 --- a/maubot/handlers/command.py +++ b/maubot/handlers/command.py @@ -173,7 +173,7 @@ class CommandHandler: remaining_val, call_args[arg.name] = arg.match( remaining_val.strip(), evt=evt, instance=self.__bound_instance__ ) - if arg.required and call_args[arg.name] is None: + if arg.required and (call_args[arg.name] is None or call_args[arg.name] == ""): raise ValueError("Argument required") except ArgumentSyntaxError as e: await evt.reply(e.message + (f"\n{self.__mb_usage__}" if e.show_usage else ""))