add !dig as alias of !dns

This commit is contained in:
jesopo 2021-05-16 16:04:02 +00:00
parent e2fbbc2406
commit 2951bfc18f

View file

@ -21,6 +21,7 @@ def _parse(value):
@utils.export("channelset", utils.FunctionSetting(_parse, "dns-nameserver",
"Set DNS nameserver", example="8.8.8.8"))
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.dig", alias_of="dns")
@utils.hook("received.command.dns", min_args=1)
def dns(self, event):
"""