add !action to echo.py
This commit is contained in:
parent
30588da3a7
commit
3be9029669
1 changed files with 6 additions and 0 deletions
|
@ -7,3 +7,9 @@ class Module(ModuleManager.BaseModule):
|
|||
@utils.kwarg("min_args", 1)
|
||||
def echo(self, event):
|
||||
event["stdout"].write(event["args"])
|
||||
|
||||
@utils.hook("received.command.action")
|
||||
@utils.kwarg("min_args", 1)
|
||||
@utils.kwarg("expect_output", False)
|
||||
def action(self, event):
|
||||
event["target"].send_message("\x01ACTION %s\x01" % event["args"])
|
||||
|
|
Loading…
Reference in a new issue