|
@@ -38,6 +38,7 @@ class RCMonitor(Command): |
|
|
"""Monitors the recent changes feed for certain edits and reports them to a |
|
|
"""Monitors the recent changes feed for certain edits and reports them to a |
|
|
dedicated channel.""" |
|
|
dedicated channel.""" |
|
|
name = "rc_monitor" |
|
|
name = "rc_monitor" |
|
|
|
|
|
commands = ["rc_monitor", "rcm"] |
|
|
hooks = ["msg", "rc"] |
|
|
hooks = ["msg", "rc"] |
|
|
|
|
|
|
|
|
def setup(self): |
|
|
def setup(self): |
|
@@ -71,7 +72,7 @@ class RCMonitor(Command): |
|
|
if not self._channel: |
|
|
if not self._channel: |
|
|
return |
|
|
return |
|
|
return isinstance(data, RC) or ( |
|
|
return isinstance(data, RC) or ( |
|
|
data.is_command and data.command == self.name) |
|
|
|
|
|
|
|
|
data.is_command and data.command in self.commands) |
|
|
|
|
|
|
|
|
def process(self, data): |
|
|
def process(self, data): |
|
|
if isinstance(data, RC): |
|
|
if isinstance(data, RC): |
|
|