!echo should have a min_args kwarg
This commit is contained in:
parent
4bb20c49dd
commit
1da8e15b78
1 changed files with 1 additions and 0 deletions
|
@ -4,5 +4,6 @@ from src import ModuleManager, utils
|
|||
|
||||
class Module(ModuleManager.BaseModule):
|
||||
@utils.hook("received.command.echo")
|
||||
@utils.kwarg("min_args", 1)
|
||||
def echo(self, event):
|
||||
event["stdout"].write(event["args"])
|
||||
|
|
Loading…
Reference in a new issue