add !msg
This commit is contained in:
parent
69bf622d2d
commit
bc63111984
1 changed files with 9 additions and 0 deletions
|
@ -13,3 +13,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.kwarg("expect_output", False)
|
@utils.kwarg("expect_output", False)
|
||||||
def action(self, event):
|
def action(self, event):
|
||||||
event["target"].send_message("\x01ACTION %s\x01" % event["args"])
|
event["target"].send_message("\x01ACTION %s\x01" % event["args"])
|
||||||
|
|
||||||
|
@utils.hook("received.command.msg")
|
||||||
|
@utils.kwarg("min_args", 2)
|
||||||
|
@utils.kwarg("permission", "say")
|
||||||
|
@utils.kwarg("remove_empty", False)
|
||||||
|
@utils.kwarg("help", "Send a message to a target")
|
||||||
|
def msg(self, event):
|
||||||
|
event["server"].send_message(event["args_split"][0],
|
||||||
|
" ".join(event["args_split"][1:]))
|
||||||
|
|
Loading…
Reference in a new issue