add help and channel_only kwargs to !ops

This commit is contained in:
jesopo 2019-07-09 21:24:35 +01:00
parent 9ffe62f27e
commit b7fa8a2f52

View file

@ -7,6 +7,8 @@ from src import ModuleManager, utils
"Enable/disable command that highlights all online channel ops"))
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.ops")
@utils.kwarg("channel_only", True)
@utils.kwarg("help", "Alert the ops in the current channel")
def ops(self, event):
if event["target"].get_setting("op-ping", False):
ops = []